summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/util_functions.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-08-01 14:51:05 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-08-01 14:51:05 -0700
commitcfda705a5e07f9611f5b8d0e3425fe58a851b61b (patch)
treec6f1e05f38c3641af2941b0273f6b81f072408f2 /gr-utils/python/modtool/util_functions.py
parent1cdda44be516afd4197e1adda72bf2b2391a1955 (diff)
parent9f62aa85ee15b6a7dd7283d834abc192c437ea13 (diff)
Merge remote-tracking branch 'pinkavaj/argparse-modtool-02' into next
Diffstat (limited to 'gr-utils/python/modtool/util_functions.py')
-rw-r--r--gr-utils/python/modtool/util_functions.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/gr-utils/python/modtool/util_functions.py b/gr-utils/python/modtool/util_functions.py
index 47799ac461..de7f3d29b6 100644
--- a/gr-utils/python/modtool/util_functions.py
+++ b/gr-utils/python/modtool/util_functions.py
@@ -25,15 +25,6 @@ import sys
# None of these must depend on other modtool stuff!
-def get_command_from_argv(possible_cmds):
- """ Read the requested command from argv. This can't be done with optparse,
- since the option parser isn't defined before the command is known, and
- optparse throws an error."""
- for arg in sys.argv:
- if arg[0] != "-" and arg in possible_cmds:
- return arg
- return None
-
def append_re_line_sequence(filename, linepattern, newline):
""" Detects the re 'linepattern' in the file. After its last occurrence,
paste 'newline'. If the pattern does not exist, append the new line