Skip to content
Snippets Groups Projects
Commit b3ee9427 authored by Will Buttinger's avatar Will Buttinger Committed by Melissa Yexley
Browse files

Update AthConfigFlags.py - ensure default values are shown even if there's no help text

parent 357efcf0
No related branches found
No related tags found
No related merge requests found
......@@ -810,7 +810,8 @@ class AthConfigFlags(object):
helptext = f": {flag._help}"
if flag._type is not None:
helptext += f' [type: {flag._type.__name__}]'
if val is not None and helptext == "":
helptext = ": " # ensures default values are displayed even if there's no help text
getParser(category)[0].add_argument(name, nargs='?', default=val, help=helptext)
parser._positionals.title = 'flags and positional arguments'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment