Re: [Haskell-cafe] hledger subcommand detection, RFC

2011-09-11 Thread Neil Mitchell
* an option to all commands that lists out all its available options, to aid with shell completion. See the link I posted above about the oggz tools for an example usage and a link to a bash completion file. Note that the next version of CmdArgs will include command line flag completion

Re: [Haskell-cafe] hledger subcommand detection, RFC

2011-08-29 Thread Conrad Parker
On 27 August 2011 00:23, Simon Michael si...@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

Re: [Haskell-cafe] hledger subcommand detection, RFC

2011-08-26 Thread Simon Michael
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

Re: [Haskell-cafe] hledger subcommand detection, RFC

2011-08-25 Thread Conrad Parker
Hi Simon, good stuff! this is the same approach that eg. git uses, it seems to be quite flexible. I did a similar thing for a C project called oggz a while back: http://lists.xiph.org/pipermail/ogg-dev/2008-August/001110.html some other useful things you could add: * a help subcommand