problem with sys import argv

Thomas 'PointedEars' Lahn PointedEars at
Tue Mar 26 21:12:42 CET 2013

Dave Angel wrote:

> Since the script takes a mandatory argument, run it with one.
> python  Dave
> Better would be to change the script to check len(argv) for exactly 2,
> and tell the user how he should have run it.

I would use argparse.ArgumentParser instead.



Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

More information about the Python-list mailing list