Popularity
7.4
Growing
Activity
0.0
Stable
23
5
4
Monthly Downloads: 8
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.2.0
cli alternatives and similar packages
Based on the "CLI" category.
Alternatively, view cli alternatives based on common mentions on social networks and blogs.
-
herms
:stew::fork_and_knife: A command-line manager for delicious kitchen recipes -
otp-authenticator
OTP Authenticator (ala Google Authenticator) cli app -
optparse-applicative-simple
Simple command line interface arguments parser
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Promo
scoutapm.com
Do you think we are missing an alternative of cli or a related project?
Popular Comparisons
README
cli
Documentation: cli on hackage
Option parser in DSL form, and display utilities for command line interfaces.
Option Parsing
Basic program looks like:
defaultMain $ do
f1 <- flag ..
f2 <- argument ..
action $ \toParam ->
something (toParam f1) (toParam f2) ..
with subcommands:
defaultMain $ do
subcommand "foo" $ do
<..flags & parameters definitions...>
action $ \toParam -> <..IO-action..>
subcommand "bar" $ do
<..flags & parameters definitions...>
action $ \toParam -> <..IO-action..>
A Real Example:
main = defaultMain $ do
programName "test-cli"
programDescription "test CLI program"
flagA <- flag $ FlagShort 'a' <> FlagLong "aaa"
allArgs <- remainingArguments "FILE"
action $ \toParam -> do
putStrLn $ "using flag A : " ++ show (toParam flagA)
putStrLn $ "args: " ++ show (toParam allArgs)
License
The source code of cli is available under the BSD 3-Clause license, see LICENSE
for more information.
*Note that all licence references and agreements mentioned in the cli README section above
are relevant to that project's source code only.