Popularity
8.3
Declining
Activity
0.0
Stable
41
13
3
Monthly Downloads: 53
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
Robust, fast, intuitive plain text accounting tool with CLI, TUI and web interfaces. -
hledger-flow
An hledger/ledger-cli workflow focusing on automated statement import and classification -
docopt
A command-line interface description language and parser that will make you smile -
hledger-iadd
A terminal UI as drop-in replacement for hledger add. -
hledger-stockquotes
Generate an HLedger Journal Containing Daily Stock & Crypto Quotes for your Commodities -
hflags
Command line flag parser for Haskell, conceptually very similar to Google's gflags -
spelling-suggest
spelling suggestion library and command line tool -
print-console-colors
Print all the ANSI console colors for your terminal -
husky
husky is a command line shell for UNIX-like OS written in haskell. -
argparser
Command line parsing framework for console applications -
pasty
pasty is a linux command line tool written in Haskell for pasting from column centric plain text files. -
uniq-deep
alternative of unix uniq command. 'uniq-deep' detect repeated lines unless they are adjacent. -
structured-cli
Application library for building interactive console CLIs -
hledger-makeitso
An hledger workflow focusing on automated statement import and classification. -
cmdtheline
Declarative command-line option parsing and documentation library.
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
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 ### -->