Skip to content

Commit

Permalink
Add back param comment for defaults with None
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavies-st committed Aug 23, 2023
1 parent 03317ac commit 8151d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stpipe/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def build_from_spec(subspec, parts=[]):
# Only show default value if it is not None or the empty string
default_value_string = val.split("(")[1].rstrip(")").strip()
if default_value_string.lstrip("default=") in ["None", "''", '""']:
help_string = ""
help_string = comment
else:
help_string = f"{comment} [{default_value_string}]"
argument = "--" + ".".join(parts + [key])
Expand Down

0 comments on commit 8151d57

Please sign in to comment.