2016-07-31 12 views
-6

Beim Lesen der Dokumentation zu mueval bin ich auf folgende Beschreibung gestoßen:Was ist muevals --help Parameter?

'Siehe die Ergebnisse von --help für Informationen darüber, was jede Option bedeutet.'

Was ist --help und wie benutze ich es?

es hier gefunden: https://hackage.haskell.org/package/mueval-0.9.1.1.2/docs/Mueval-ArgsParse.html#t:Options

+2

'mueval' existiert als Kommandozeilen-Tool, wenn installiert, so beziehen sich die Dokumente darauf ('mueval --help'). – carpemb

Antwort

1

Dies ist, was ich bekomme, wenn ich nix-shell -p haskellPackages.mueval --run 'mueval --help' laufen (I nix bin mit mueval laufen):

Usage: mueval [OPTION...] --expression EXPRESSION... 
    -p PASSWORD --password=PASSWORD  The password for the mubot account. If this is set, mueval will attempt to setuid to the mubot user. This is optional, as it requires the mubot user to be set up properly. (Currently a null-op.) 
    -t TIME  --time-limit=TIME  Time limit for compilation and evaluation 
    -l FILE  --load-file=FILE   A local file for Mueval to load, providing definitions. Contents are trusted! Do not put anything dubious in it! 
    -m MODULE  --module=MODULE   A module we should import functions from for evaluation. (Can be given multiple times.) 
    -n    --no-imports    Whether to import any default modules, such as Prelude; this is useful if you are loading a file which, say, redefines Prelude operators. This can be subverted by using --load-file. 
    -E    --Extensions    Whether to enable the Glasgow extensions to Haskell '98. Defaults to false, but enabling is useful for QuickCheck. 
    -X EXTENSION --extension=EXTENSION Pass additional flags enabling extensions just like you would to ghc. Example: -XViewPatterns 
    -e EXPRESSION --expression=EXPRESSION The expression to be evaluated. 
    -i    --inferred-type   Whether to enable printing of inferred type and the expression (as Mueval sees it). Defaults to false. 
    -T    --type-only    Only print the expression and type, don't evaluate the expression. Defaults to false. 
    -r    --resource-limits  Enable resource limits (using POSIX rlimits). Mueval does not by default since rlimits are broken on many systems. 
    -S    --package-trust   Enable Safe-Haskell package trust system 
    -s PACKAGE  --trust=PACKAGE   Specify a package to be trusted by Safe Haskell (ignored unless -S also present) 
    -h    --help     Prints out usage info.