module argument_parser
Argument parsing for yaralyzer CLI tool.
Global Variables
- CONFIDENCE_SCORE_RANGE
- YARA_REGEX_MODIFIERS
- YARA_RULES_ARGS
- DESCRIPTION
- EPILOG
function parse_arguments
parse_arguments(args: Optional[Namespace] = None)
Parse command line args. Most arguments can also be communicated to the app by setting env vars. If args
are passed neither rules nor a regex need be provided as it is assumed the constructor will instantiate a Yaralyzer
object directly.
Args:
args
(Optional[Namespace], optional): If provided, use these args instead of parsing from command line. Defaults toNone
.
Raises:
ArgumentError
: If args are invalid.
function get_export_basepath
get_export_basepath(args: Namespace, yaralyzer: Yaralyzer)
Get the basepath (directory + filename without extension) for exported files.
class OutputSection
OutputSection(argument, method)
This file was automatically generated via lazydocs.