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
This commit is contained in:
Tobias Henkel 2019-01-14 14:57:28 +01:00
parent 7fd6411dac
commit 97060ea7ba
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ class NodepoolApp(object):
return os.path.abspath(os.path.expanduser(path))
def create_parser(self):
parser = argparse.ArgumentParser(description=self.app_description)
parser = argparse.ArgumentParser(
description=self.app_description,
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-l',
dest='logconfig',