diff options
author | Volker Schroer <3470424+dl1ksv@users.noreply.github.com> | 2021-03-16 16:54:20 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-03-16 15:22:37 -0400 |
commit | c317661088fcfee3cd29cdbe99bd729ed874548a (patch) | |
tree | a5e0e9a65e656db1afa91f3331bf9fa529a45e36 | |
parent | dd91a45d922c299004cc2d6027a9a8fea248e1aa (diff) |
gr_modtool add: Correctly handle arglist
Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
-rw-r--r-- | gr-utils/modtool/cli/add.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/modtool/cli/add.py b/gr-utils/modtool/cli/add.py index 6a22189a68..40198ebd43 100644 --- a/gr-utils/modtool/cli/add.py +++ b/gr-utils/modtool/cli/add.py @@ -27,7 +27,7 @@ from .base import common_params, block_name, run, cli_input, ModToolException help="File containing the license header for every source code file.") @click.option('--copyright', help="Name of the copyright holder (you or your company) MUST be a quoted string.") -@click.option('--argument-list', default="", +@click.option('--argument-list', default=None, help="The argument list for the constructor and make functions.") @click.option('--add-python-qa', is_flag=True, default=None, help="If given, Python QA code is automatically added if possible.") @@ -119,7 +119,7 @@ def get_copyrightholder(self): def get_arglist(self): """ Get the argument list of the block to be added """ - if self.info['arglist'] is not None: + if self.info['arglist'] is None: self.info['arglist'] = click.prompt(click.style( 'Enter valid argument list, including default arguments: \n', fg='cyan'), |