CmdOpts Module
Provides utility functions for parsing command line options.
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
parseAndRun mainFn tool usageTail spec opts args
Parameters:
string list -> 'a -> unit
tool : 'b
usageTail : string
spec : CmdOpt<'a, 'c> list
opts : 'a
args : Args
Returns: int
Type parameters: 'a, 'b, 'c (requires :> B2R2.RearEnd.Utils.IVerboseOption) |
Parses command line arguments and runs the mainFn
|
Full Usage:
printUsage tool usageTail spec
Parameters:
'a
usageTail : string
spec : CmdOpt<'b, 'c> list
Returns: 'd
Type parameters: 'a, 'b, 'c, 'd |
Prints out the usage message for the given tool.
|
Full Usage:
sanitizeRestArgs args
Parameters:
string list
|
Checks if the rest args contain an option string. If so, exit the program. Otherwise, do nothing.
|
Full Usage:
writeIntro ()
Parameters:
unit
|
Writes introduction message to console.
|
B2R2