Parent Directory | Revision Log | Revision Graph | Patch
revision 1.1 by mlosch, Wed May 9 09:46:25 2018 UTC | revision 1.2 by mlosch, Wed May 9 11:36:59 2018 UTC | |
---|---|---|
# | Line 10 from getopt import gnu_getopt as getopt | Line 10 from getopt import gnu_getopt as getopt |
10 | # parse command-line arguments | # parse command-line arguments |
11 | try: | try: |
12 | optlist,args = getopt(sys.argv[1:], ':', ['verbose']) | optlist,args = getopt(sys.argv[1:], ':', ['verbose']) |
print(len(args)) | ||
13 | assert len(args) == 1 | assert len(args) == 1 |
14 | except (AssertionError): | except (AssertionError): |
15 | sys.exit(__doc__) | sys.exit(__doc__) |
|
ViewVC Help | |
Powered by ViewVC 1.1.22 |