Commit ba4ffa31 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b81bf3f5
......@@ -78,16 +78,16 @@ XXX
Options:
--gc perform garbage-collection as well
--nogc don't perform garbage-collection
-h --help show this help
""", file=out)
@func
def main(argv):
gc = False
gc = True
try:
optv, argv = getopt.getopt(argv[1:], "h", ["gc", "help"])
optv, argv = getopt.getopt(argv[1:], "h", ["nogc", "help"])
except getopt.GetoptError as e:
print(e, file=sys.stderr)
usage(sys.stderr)
......@@ -97,8 +97,8 @@ def main(argv):
if opt in ("-h", "--help"):
usage(sys.stdout)
sys.exit(0)
if opt in ("--gc"):
gc = True
if opt in ("--nogc"):
gc = False
if len(argv) != 2:
usage(sys.stderr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment