14 Commits

Author SHA1 Message Date
Ville Skyttä
3af9222e96 _parse_help, _parse_usage: If first arg is "-", read from stdin. 2011-11-25 08:45:59 +02:00
Ville Skyttä
102a19c8a2 _parse_help: Treat " or " as a separator when parsing options. 2011-07-10 15:25:23 +03:00
Ville Skyttä
a52c4ea382 __parse_options: Remove trailing [().]* from completions. 2011-06-18 15:44:43 +03:00
Ville Skyttä
b8b46f9c27 _parse_help: Pick long options also from "-f FOO, --foo=FOO". 2011-05-11 19:28:17 +03:00
Ville Skyttä
68f6f1c685 _parse_usage, _parse_help: Add _parse_usage, expand [no-] and [dont-?] as well in _parse_help. 2011-05-02 14:37:13 +03:00
Ville Skyttä
c875723bef Include trailing equals sign in options that take arguments that way.
This way it's clearer to users that an argument is expected.  It's
likely that this commit does not catch all such cases, but it should
do it for most of the affected commands I have installed.
2011-05-02 11:45:55 +03:00
Ville Skyttä
7fb4e3137d _parse_help: Don't treat tokens with more than two leading dashes as options. 2011-04-29 12:05:29 +03:00
Ville Skyttä
b6cdacf1f9 _parse_help: Expand --[no]foo to --foo and --nofoo. 2011-04-29 11:47:48 +03:00
Ville Skyttä
fd2bd342e0 _parse_help: Fix --foo={bar,quux} handling. 2011-04-28 20:48:48 +03:00
Ville Skyttä
9d810be86b _parse_help: Make work with pipe separated options. 2011-04-27 23:22:03 +03:00
Ville Skyttä
7b60fc6555 _parse_help: Re-fix --foo[=bar] handling. 2011-04-27 21:44:04 +03:00
Ville Skyttä
5cd5993211 _parse_help: Change to output first long option, or first short if not found.
Makes things more consistent with the rest of our option offerings.
2011-04-27 18:36:52 +03:00
Ville Skyttä
96c6416309 Make _parse_help() work with slash separated options. 2010-10-11 00:39:50 +03:00
Ville Skyttä
95399f638c Fix false posives for non-option words in _parse_help (Alioth: #312750, Stephen Gildea). 2010-10-11 00:01:51 +03:00