summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Henkel <tobias.henkel@bmw.de>2019-01-14 14:57:28 +0100
committerTobias Henkel <tobias.henkel@bmw.de>2019-01-14 14:57:28 +0100
commit97060ea7bac790733cd34be3b108194d5b609757 (patch)
treefa40113ce21fd832d7c21e12584e15b8eec2d95a
parent7fd6411dac109384a47b672b2f97313980cee687 (diff)
Document default values of runtime arguments
Argparse can output the default values of the runtime arguments. Enable it so we have them documented. Change-Id: I4fd7f21546615bd249485707521d8222fab10962
Notes
Notes (review): Code-Review+2: Ian Wienand <iwienand@redhat.com> Code-Review+2: Clint 'SpamapS' Byrum <clint@fewbar.com> Workflow+1: Clint 'SpamapS' Byrum <clint@fewbar.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 16 Jan 2019 02:04:55 +0000 Reviewed-on: https://review.openstack.org/630679 Project: openstack-infra/nodepool Branch: refs/heads/master
-rw-r--r--nodepool/cmd/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nodepool/cmd/__init__.py b/nodepool/cmd/__init__.py
index 493e43c..ed50dcf 100644
--- a/nodepool/cmd/__init__.py
+++ b/nodepool/cmd/__init__.py
@@ -91,7 +91,9 @@ class NodepoolApp(object):
91 return os.path.abspath(os.path.expanduser(path)) 91 return os.path.abspath(os.path.expanduser(path))
92 92
93 def create_parser(self): 93 def create_parser(self):
94 parser = argparse.ArgumentParser(description=self.app_description) 94 parser = argparse.ArgumentParser(
95 description=self.app_description,
96 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
95 97
96 parser.add_argument('-l', 98 parser.add_argument('-l',
97 dest='logconfig', 99 dest='logconfig',