diff options
| author | Javi Ribera <jprat@purdue.edu> | 2017-10-22 20:46:06 -0400 |
|---|---|---|
| committer | Javi Ribera <jprat@purdue.edu> | 2017-10-22 20:46:06 -0400 |
| commit | 9854d6a5e40fe2c9dd1b70302f41624b63b3c545 (patch) | |
| tree | e6b97c6b60aacdb50b768e5af5f6f02bd2bfd4ec | |
| parent | 9d1bc76e6a4f791a25db1179c7c2b4c62a8d55cd (diff) | |
show default parameter values when invoking with -h
| -rw-r--r-- | options/base_options.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
