From 9854d6a5e40fe2c9dd1b70302f41624b63b3c545 Mon Sep 17 00:00:00 2001 From: Javi Ribera Date: Sun, 22 Oct 2017 20:46:06 -0400 Subject: show default parameter values when invoking with -h --- options/base_options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/base_options.py') diff --git a/options/base_options.py b/options/base_options.py index e89f144..b2d5360 100644 --- a/options/base_options.py +++ b/options/base_options.py @@ -5,7 +5,7 @@ import torch class BaseOptions(): def __init__(self): - self.parser = argparse.ArgumentParser() + self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) self.initialized = False def initialize(self): -- cgit v1.2.3-70-g09d2