Popularity
8.4
Declining
Activity
1.5
Declining
43
12
3
Monthly Downloads: 45
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. -
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. -
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. -
argparser
Command line parsing framework for console applications -
print-console-colors
Print all the ANSI console colors for your terminal -
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. -
structured-cli
Application library for building interactive console CLIs -
cmdtheline
Declarative command-line option parsing and documentation library. -
hledger-makeitso
An hledger workflow focusing on automated statement import and classification.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
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 ### -->