git.iko.soy/typeable/cabal2nix
on master help sign in
src/Cabal2Nix.hs: allow '-m' and '-p' shortcuts on the command-line
commit3c91f4d1c5a881ebf5bf7eef3771f0267c08bad4 authorPeter Simons <simons@cryp.to> dateTue 9 Aug 2011, 10:12 (15 years ago) parent3c62084
2 files changed+6−6
cabal2nix.cabal+4−4 src/Cabal2Nix.hs+2−2
cabal2nix.cabal+4−4
@@ -16,10 +16,10 @@ Description:
1616 commandline syntax is:
1717 .
1818 > Usage: cabal2nix [options] url-to-cabal-file
19− > -h --help show this help text
20− > --sha256=HASH sha256 hash of source tarball
21− > --maintainer=MAINTAINER maintainer of this package (may be specified multiple times)
22− > --platform=PLATFORM supported build platforms (may be specified multiple times)
19+ > -h --help show this help text
20+ > --sha256=HASH sha256 hash of source tarball
21+ > -m MAINTAINER --maintainer=MAINTAINER maintainer of this package (may be specified multiple times)
22+ > -p PLATFORM --platform=PLATFORM supported build platforms (may be specified multiple times)
2323 >
2424 > Recognized URI schemes:
2525 >
src/Cabal2Nix.hs+2−2
@@ -31,8 +31,8 @@ main = bracket (return ()) (\() -> hFlush stdout >> hFlush stderr) $ \() -> do
3131 options =
3232 [ Option ['h'] ["help"] (NoArg PrintHelp) "show this help text"
3333 , Option [] ["sha256"] (ReqArg SHA256 "HASH") "sha256 hash of source tarball"
34− , Option [] ["maintainer"] (ReqArg Maintainer "MAINTAINER") "maintainer of this package (may be specified multiple times)"
35− , Option [] ["platform"] (ReqArg Platform "PLATFORM") "supported build platforms (may be specified multiple times)"
34+ , Option ['m'] ["maintainer"] (ReqArg Maintainer "MAINTAINER") "maintainer of this package (may be specified multiple times)"
35+ , Option ['p'] ["platform"] (ReqArg Platform "PLATFORM") "supported build platforms (may be specified multiple times)"
3636 ]
3737
3838 usage :: String