[Haskell-cafe] hledger subcommand detection, RFC
conrad at metadecks.org
Mon Aug 29 08:24:55 CEST 2011
On 27 August 2011 00:23, Simon Michael <simon at joyful.com> wrote:
> Thanks Conrad! Those are some great links.
>> I wrapped up some manpage generation code in a package called
>> ui-command, which is kind of orthogonal to cmdargs (ui-command just
>> deals with subcommands). Example commands are often useful, so I added
> Interesting. Have you tried using both ui-command and cmdargs together ?
No, I've generally just used ui-command to select (and document)
subcommands, and GetOpt to handle arguments. I think cmdargs added
support for selecting subcommands recently.
In any case, you are selecting subcommands by searching the
filesystem. Perhaps it would be a good idea to split out the
documentation part of ui-command ...
More information about the Haskell-Cafe