New submission from wrobell <[email protected]>:
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'])
----------
components: Library (Lib)
messages: 162741
nosy: wrobell
priority: normal
severity: normal
status: open
title: argparse: option for a positional argument
type: enhancement
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15062>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com