Skip to content

Commit

Permalink
Safer method of specifying None as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Blanton authored and Chris Blanton committed Nov 26, 2024
1 parent ec650ba commit 211d9a1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions fre/pp/frepp.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,8 @@ def configure_yaml(context,yamlfile,experiment,platform,target):
help="Target name",
required=True)
@click.option("-b", "--branch",
show_default=True,
default=None, type='NoneType',
help="Name of fre2/workflows/postproc branch to clone; " \
"defaults to None. Not intended for production use, " \
"but needed for branch testing." )
required=False,
help="fre-workflows branch/tag to clone; default is $(fre --version)")
@click.pass_context
def checkout(context, experiment, platform, target, branch=None):
# pylint: disable=unused-argument
Expand Down Expand Up @@ -198,10 +195,7 @@ def configure_xml(context, xml, platform, target, experiment, do_analysis, histo
required=True)
@click.option("-b", "--branch",
show_default=True,
default=None, type='NoneType',
help="Name of fre2/workflows/postproc branch to clone; " \
"defaults to None. Not intended for production use, " \
"but needed for branch testing." )
help="fre-workflows branch/tag to clone; default is $(fre --version)")
@click.pass_context
def wrapper(context, experiment, platform, target, config_file, branch=None):
# pylint: disable=unused-argument
Expand Down

0 comments on commit 211d9a1

Please sign in to comment.