cmdargs
cmdargs copied to clipboard
Haskell library for command line argument processing
Given following program: ```hs data Cli = Serve { filePath :: FilePath } | Inspect { filePath :: FilePath } deriving (Show, Data, Typeable) cliServe :: Cli cliServe = Serve...
With `System.Console.CmdArgs.Implicit`, I mean. Or I should check the result myself.
`--numeric-version` flag is automatically added as I use `summary`. Is there any way to customize help message of `--numeric-version`? Thank you.
Is there a way to add an argument, but not make it show up in the help message? (Useful in implementing backdoor developer-only testing features.)
Behaviour is at odds with usual shell quoting practices, violating principle of least surprise. Examples of unexpected behaviour: * no expectation that quotes are balanced (```f Quot []``` should be...
From https://code.google.com/p/ndmitchell/issues/detail?id=470: Some programs want to accumulate "unknown" flags, i.e. those which aren't otherwise recognised by the program. I'm in two minds about this, since it brings a number of...
I'd like to create an argument with a single dash. Is this possible? If I do `name "foo"`, the flag is `--foo`, but I'd like it to be `-foo`.
Visible on Hackage [Matrix CI](https://matrix.hackage.haskell.org/#/package/cmdargs). This breaks builds for compilers that don't support TemplateHaskell (e.g cross-compilers for GHC 8.6.5)
It seems both `--flag=value` and `--flag value` style works for all argument types except booleans. Here is a small example to reproduce. It could probably be made smaller by relying...
I'm wondering if it is possible at all to be able to run like `./myprog cmd1 cmd2 ...` using this library? The `modes` things returns a single command, so maybe...