I like the general direction but one thing makes me a little confused... Russ Cox wrote: > >... > > for o in opt: > if o=='-n' or o=='--num': > ncopies = opt.optarg(opt.needtype(int)) How does "opt" know that I am looking for the arguments to the --num command line argument and not the --file one? I guess I would expect an interface more like: for o, value in opt: if o=='-n' or o=='--num': ncopies = optparser.needtype(value, 'integer') Paul Prescod
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4