diff options
author | 2015-08-08 11:46:59 -0400 | |
---|---|---|
committer | 2015-08-08 11:46:59 -0400 | |
commit | 0ba6b009b50576af0f492c88af80b4a958f19d4d (patch) | |
tree | 356ebf57528985f2bd7285ca42d3d423edb0ec83 /bin | |
parent | bin/grsup: Implement -l. Cleanup flag sanity check. (diff) | |
download | grss-0ba6b009b50576af0f492c88af80b4a958f19d4d.tar.gz grss-0ba6b009b50576af0f492c88af80b4a958f19d4d.tar.bz2 grss-0ba6b009b50576af0f492c88af80b4a958f19d4d.zip |
Switch to gnu_getopt.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/grsrun | 4 | ||||
-rwxr-xr-x | bin/grsup | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,7 @@ from grs import CONST from grs import Execute from grs import Interpret -from getopt import getopt, GetoptError +from getopt import gnu_getopt, GetoptError def usage(rc=1): @@ -30,7 +30,7 @@ flags: Release run. Do every step in build script. def main(): try: - opts, x = getopt(sys.argv[1:], 'mus:h') + opts, x = gnu_getopt(sys.argv[1:], 'mus:h') except GetoptError as e: usage() @@ -8,7 +8,7 @@ import signal import sys import urllib.request -from getopt import getopt, GetoptError +from getopt import gnu_getopt, GetoptError from html.parser import HTMLParser from grs import CONST @@ -131,7 +131,7 @@ def main(): myaction, myopts, myfiles = parse_opts(sys.argv[1:]) try: - opts, x = getopt(sys.argv[1:], 'lDk:rdh') + opts, x = gnu_getopt(sys.argv[1:], 'lDk:rdh') sanitize(opts, x) except GetoptError: usage() |