Popularity
8.4
Stable
Activity
0.0
Stable
42
13
3
Monthly Downloads: 31
Programming language: Haskell
License: GNU General Public License v3.0 or later
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. -
docopt
A command-line interface description language and parser that will make you smile -
hledger-flow
An hledger/ledger-cli workflow focusing on automated statement import and classification -
hledger-iadd
A terminal UI as drop-in replacement for hledger add. -
hflags
Command line flag parser for Haskell, conceptually very similar to Google's gflags -
hledger-stockquotes
Generate an HLedger Journal Containing Daily Stock & Crypto Quotes for your Commodities -
spelling-suggest
spelling suggestion library and command line tool -
husky
husky is a command line shell for UNIX-like OS written in haskell. -
print-console-colors
Print all the ANSI console colors for your terminal -
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.
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
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 ### -->