summaryrefslogtreecommitdiff
path: root/options/base_options.py
diff options
context:
space:
mode:
authorJavi Ribera <jprat@purdue.edu>2017-10-22 20:46:06 -0400
committerJavi Ribera <jprat@purdue.edu>2017-10-22 20:46:06 -0400
commit9854d6a5e40fe2c9dd1b70302f41624b63b3c545 (patch)
treee6b97c6b60aacdb50b768e5af5f6f02bd2bfd4ec /options/base_options.py
parent9d1bc76e6a4f791a25db1179c7c2b4c62a8d55cd (diff)
show default parameter values when invoking with -h
Diffstat (limited to 'options/base_options.py')
-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):