@@ -50,15 +50,17 @@ options =
52usage :: String
52usage :: String
53−usage = usageInfo "Usage: cabal2nix [options] url-to-cabal-file" options ++ unlines
53+usage = usageInfo "Usage: cabal2nix [options] URI" options ++ unlines
55 , "Recognized URI schemes:"
55 , "Recognized URI schemes:"
57 , " cabal://pkgname-pkgversion download the specified package from Hackage"
57 , " cabal://pkgname-pkgversion download the specified package from Hackage"
58 , " cabal://pkgname download latest version of the specified package from Hackage"
58 , " cabal://pkgname download latest version of the specified package from Hackage"
59− , " http://host/path fetch the Cabal file via HTTP"
60 , " file:///local/path load the Cabal file from the local disk"
59 , " file:///local/path load the Cabal file from the local disk"
61 , " /local/path abbreviated version of file URI"
60 , " /local/path abbreviated version of file URI"
62+ , "If URI is a local path and is not a file, then it will be used as the source of the package. Otherwise, the source"
63+ , "will be downloaded from hackage."
64cmdlineError :: String -> IO a
66cmdlineError :: String -> IO a