summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-09-28 20:31:39 +0200
committerMarcus Müller <mmueller@gnuradio.org>2019-11-01 14:58:13 +0100
commit66b46aa1706e0316a7e93dbb7062e37e26f60ca7 (patch)
treecbb8a079f1ba38d28609596fbab014f0659bdbe6 /gr-utils/python
parenta75f0c40fe0912535fe102792f27c13d01df8e3e (diff)
modtool: allow empty arg list in interactive mode
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/cli/add.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/cli/add.py b/gr-utils/python/modtool/cli/add.py
index 51a63ffc60..694d49f5fe 100644
--- a/gr-utils/python/modtool/cli/add.py
+++ b/gr-utils/python/modtool/cli/add.py
@@ -127,7 +127,13 @@ 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:
- self.info['arglist'] = click.prompt(click.style('Enter valid argument list, including default arguments: \n', fg='cyan'), prompt_suffix='')
+ self.info['arglist'] = click.prompt(click.style(
+ 'Enter valid argument list, including default arguments: \n',
+ fg='cyan'),
+ prompt_suffix='',
+ default='',
+ show_default=False)
+
def get_py_qa(self):
""" Get a boolean value for addition of py_qa """