Message162741
| Author |
wrobell |
| Recipients |
wrobell |
| Date |
2012年06月13日.23:15:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339629346.54.0.223771927159.issue15062@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
it would be great if argparse allowed to specify options for multiple positional arguments, i.e.
usage: ascript [-h] [-k value] input [[-k value] input ...] output
then
$ ascript pos1 pos2 -k 1 pos3 -k 2 pos4 pos5 pos6 out
would give
Namespace(input=[(None, 'pos1'), (None, 'pos2'), ('1', 'pos3'), ('2', 'pos4'), (None, 'pos5'), ('None', 'pos6')], output=['out']) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月13日 23:15:46 | wrobell | set | recipients:
+ wrobell |
| 2012年06月13日 23:15:46 | wrobell | set | messageid: <1339629346.54.0.223771927159.issue15062@psf.upfronthosting.co.za> |
| 2012年06月13日 23:15:45 | wrobell | link | issue15062 messages |
| 2012年06月13日 23:15:45 | wrobell | create |
|