Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34294 > unrolled thread
| Started by | rh <richard_hubbe11@lavabit.com> |
|---|---|
| First post | 2012-12-05 08:48 -0800 |
| Last post | 2012-12-05 08:48 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
How does one make argparse print usage when no options are provided on the command line? rh <richard_hubbe11@lavabit.com> - 2012-12-05 08:48 -0800
| From | rh <richard_hubbe11@lavabit.com> |
|---|---|
| Date | 2012-12-05 08:48 -0800 |
| Subject | How does one make argparse print usage when no options are provided on the command line? |
| Message-ID | <mailman.501.1354726122.29569.python-list@python.org> |
I have argparse working with one exception. I wanted the program to print out usage when no command line options are given. But I only came across other examples where people didn't use argparse but instead printed out a separate usage statement. So they used argparse for everything but the case where no command line args are given.
Back to top | Article view | comp.lang.python
csiph-web