Re: [PATCH 09/16] cal: add --highligth option which uses argmatch

Karel Zak
2013-05-06T17:19:43Z

On Thu, May 02, 2013 at 07:51:34PM +0100, Sami Kerola wrote:
> static const struct option longopts[] = {
> {"one", no_argument, NULL, '1'},
> {"three", no_argument, NULL, '3'},
> @@ -263,6 +282,7 @@ main(int argc, char **argv) {
> {"monday", no_argument, NULL, 'm'},
> {"julian", no_argument, NULL, 'j'},
> {"year", no_argument, NULL, 'y'},
> + {"highlight", required_argument, NULL, OPT_HIGHLIGHT},

I agree with Pádraig, --color seems better and extendible.

Karel

--
Karel Zak <kzak@redhat.com>