Popularity
8.3
Stable
Activity
0.0
Stable
41
13
3
Monthly Downloads: 25
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.13
getopt-generics alternatives and similar packages
Based on the "Console" category.
Alternatively, view getopt-generics alternatives based on common mentions on social networks and blogs.
-
hledger-flow
An hledger/ledger-cli workflow focusing on automated statement import and classification -
hledger-stockquotes
Generate an HLedger Journal Containing Daily Stock & Crypto Quotes for your Commodities -
uniq-deep
alternative of unix uniq command. 'uniq-deep' detect repeated lines unless they are adjacent. -
pasty
pasty is a linux command line tool written in Haskell for pasting from column centric plain text files.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of getopt-generics or a related project?
README
getopt-generics
Status
This library is experimental.
Usage
getopt-generics
tries to make it very simple to create command line
interfaces. Here's an example:
<!--- ### Start "docs/Simple.hs" "module Simple where\n\n" (MarkDown Haskell) ### -->
import WithCli
main :: IO ()
main = withCli run
run :: String -> Int -> Bool -> IO ()
run s i b = print (s, i, b)
<!--- ### End ### -->
This is how the program behaves in a shell:
<!--- ### Start "docs/Simple.shell-protocol" "" (MarkDown Shell) ### -->
$ program foo 42 true
("foo",42,True)
$ program --help
program [OPTIONS] STRING INTEGER BOOL
-h --help show help and exit
$ program foo 42 bar
cannot parse as BOOL: bar
# exit-code 1
$ program
missing argument of type STRING
missing argument of type INTEGER
missing argument of type BOOL
# exit-code 1
$ program foo 42 yes bar
unknown argument: bar
# exit-code 1
<!--- ### End ### -->