cmdargs
cmdargs copied to clipboard
Haskell library for command line argument processing
Say I have command line arguments, and one of the things that I want to accept is a list of arguments. Let's just use the example from here: https://zuttobenkyou.wordpress.com/2011/04/19/haskell-using-cmdargs-single-and-multi-mode/ So,...
Please note that I am not too familiar with cmdargs but am a user of hledger, which uses cmdargs for parsing arguments stored in text files. As specified in an...
I can use `argPos` just fine, but if I add a `help` param, I get ```: System.Console.CmdArgs.Implicit, unexpected flag (Arg_): Help "" CallStack (from HasCallStack): error, called at ./System/Console/CmdArgs/Implicit/Local.hs:106:11 in...
It would be nice to generate basic man pages and info manuals out of the information that is already provided for help messages, but currently `help2man` (versions 1.41.1 and 1.47.4)...
I am working on a program that has `sudo`-like interface: ``` sudo ls sudo ls -l sudo -u joe ls -l / ``` Here's my current code: ```haskell #!/usr/bin/env stack...
I'd like to make -h a synonym for --help, and suppress -?. But "h" is automatically assigned to another flag (--hide-successes). If I add the "explicit" annotation to that one,...
From http://code.google.com/p/ndmitchell/issues/detail?id=418 Compare ghc (not cmdargs) with Hoogle (cmdargs): ``` $ ghc -h ghc: unrecognised flags: -h ``` Usage: For basic information, try the `--help' option. ``` $ hoogle -h...
I have a mode-building helper that wants to show multiple blank-line-separated paragraphs of help text, above the cmdargs-generated flags/subcommands help. This means using modeHelp, not modeHelpSuffix, but it seems blank...
expandArgsAt and @ARGSFILE seems a great feature, which I've enabled in hledger 1.4. I notice that @~/some/file doesn't work though, you have to write @$HOME/some/file instead. Perhaps there is some...
Here is a minimal showcase of the error I am facing: If I declare a `newtype` datatype - then flags produce runtime errors. For `data`-declarations everything seems to work just...