[PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-07 Thread David Bremner
On Tue, 06 Dec 2011 22:41:23 +0200, Jani Nikula wrote: > > We chatted about reserving notmuch-*.c to notmuch commands, but I guess > it was only after you sent these. I think it would make sense though. renamed to "command-line-arguments.[ch]". Hard luck for those of you on 8.3 file systems.

Re: [PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-07 Thread David Bremner
On Tue, 06 Dec 2011 22:41:23 +0200, Jani Nikula j...@nikula.org wrote: We chatted about reserving notmuch-*.c to notmuch commands, but I guess it was only after you sent these. I think it would make sense though. renamed to command-line-arguments.[ch]. Hard luck for those of you on 8.3 file

[PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-06 Thread Jani Nikula
On Sun, 4 Dec 2011 11:47:52 -0400, David Bremner wrote: > + case NOTMUCH_OPT_INT: > + if (try->output_var) > + *((int *)try->output_var) = > + atol (arg + strlen (try->name) + 1); Looking at patch 4 and the existing handling of int

[PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-06 Thread Jani Nikula
On Sun, 4 Dec 2011 11:47:52 -0400, David Bremner wrote: > From: David Bremner > > As we noticed when Jani kindly converted things to getopt_long, much > of the work in argument parsing in notmuch is due to the the key-value > style arguments like --format=(raw|json|text). Hi David -

Re: [PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-06 Thread Jani Nikula
On Sun, 4 Dec 2011 11:47:52 -0400, David Bremner da...@tethera.net wrote: From: David Bremner brem...@debian.org As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like

Re: [PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-06 Thread Jani Nikula
On Sun, 4 Dec 2011 11:47:52 -0400, David Bremner da...@tethera.net wrote: + case NOTMUCH_OPT_INT: + if (try-output_var) + *((int *)try-output_var) = + atol (arg + strlen (try-name) + 1); Looking at patch 4 and the existing handling of

[PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-04 Thread David Bremner
From: David Bremner As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). In this version I implement Austin Clements' suggestion of basing

[PATCH 1/4] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-04 Thread David Bremner
From: David Bremner brem...@debian.org As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). In this version I implement Austin Clements' suggestion of basing the