pick: improve compatibility.
The traditional component matching syntax, `--COMP STRING', is accepted, provided at least one of the following conditions is met: 1. The word `COMP' contains at least one capital letter; 2. The word `COMP' ends with a colon; 3. Standard input is not connected to a terminal. * mh/mh_getopt.c (mh_help_hook): New global variable. (mh_help): Call mh_help_hook, if set. * mh/mh_getopt.h (mh_help_hook): New extern. * mh/pick.c (doc): Update. (opt_handler): Remove ARGP_KEY_ERROR case. (pick_help_hook): New function. (main): Convert any instance of `--comp string' to `--component=comp --pattern=string', if comp contains a capital letter or ends with a colon, or fd 0 is not connected to terminal. * doc/texinfo/mu-mh.texi: Document changes to pick.
Showing
4 changed files
with
90 additions
and
51 deletions
-
Please register or sign in to post a comment