summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-Yan Zhu <junyanz@users.noreply.github.com>2017-11-02 15:29:48 -0700
committerGitHub <noreply@github.com>2017-11-02 15:29:48 -0700
commit822896085f183859c41fd8f5fc6e9dbbfb4c706c (patch)
tree51e9ee7a0a0549dc7bc325fa2deefd711b777d45
parentd8cb73153cc460f9602b802dade2cff5946d0ac7 (diff)
parent9854d6a5e40fe2c9dd1b70302f41624b63b3c545 (diff)
Merge pull request #132 from javiribera/master
show default parameter values when invoking with -h
-rw-r--r--options/base_options.py2
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):