diff options
Diffstat (limited to 'gr-utils/modtool/cli/disable.py')
-rw-r--r-- | gr-utils/modtool/cli/disable.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gr-utils/modtool/cli/disable.py b/gr-utils/modtool/cli/disable.py index 136b4e0ee6..093128f5ce 100644 --- a/gr-utils/modtool/cli/disable.py +++ b/gr-utils/modtool/cli/disable.py @@ -23,15 +23,18 @@ def cli(**kwargs): """Disable a block (comments out CMake entries for files)""" kwargs['cli'] = True self = ModToolDisable(**kwargs) - click.secho("GNU Radio module name identified: " + self.info['modname'], fg='green') + click.secho("GNU Radio module name identified: " + + self.info['modname'], fg='green') get_pattern(self) run(self) + def get_pattern(self): """ Get the regex pattern for block(s) to be disabled """ if self.info['pattern'] is None: block_candidates = get_block_candidates() with SequenceCompleter(block_candidates): - self.info['pattern'] = cli_input('Which blocks do you want to disable? (Regex): ') + self.info['pattern'] = cli_input( + 'Which blocks do you want to disable? (Regex): ') if not self.info['pattern'] or self.info['pattern'].isspace(): self.info['pattern'] = '.' |