[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Filip. Could you give us a status update on this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256 ___

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-08-06 Thread Hans Ulrich Niedermann
Changes by Hans Ulrich Niedermann h...@n-dimensional.de: -- nosy: +ndim ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256 ___ ___

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-05-10 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: 2010/5/9 Filip Gruszczyński rep...@bugs.python.org: So, is there any decision here, so that I could get down to providing better patch? I guess I'd like to hear from someone about how these things work in zsh. If we're going to add a

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-05-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: zsh's completion system is completely programmable. I looks like it would be pretty easy to add generic 'python script' support widgets(*) using this hidden option, and probably other neat tricks as well. Something that would make it

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-05-09 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: So, is there any decision here, so that I could get down to providing better patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Here’s another approach, which has to be used explicitly but provides much more flexible completion: http://pypi.python.org/pypi/optcomplete I ask the author some time ago if he’d adapt it to argparse; he answered he wouldn’t have time

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't see why --help-options would need to be listed in help. We could pick a more obscure name, too. The point of this option is to support tools, not users. -- ___ Python tracker

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I'll be happy to both fix things pointed by Steven and try some other approach, if that's required, but I would rather do it after a consesus is reached, so I don't have to do the same stuff several times (changing argparse tests

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: 2010/4/21 Filip Gruszczyński rep...@bugs.python.org: I don't really understand, why can't we just check if help-options is provided by the user and add our own, if it is not? I'm sure it would be possible to do it this way. The

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: An obscure name reusing terms like “compword” that can be found easily in Python docs and Bash completion docs would be best. -- ___ Python tracker rep...@bugs.python.org

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: On Wed, Apr 21, 2010 at 12:45 PM, Éric Araujo rep...@bugs.python.org wrote: An obscure name reusing terms like “compword” that can be found easily in Python docs and Bash completion docs would be best. Seems sensible. Does anyone