mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 04:37:38 +02:00
Added instructions for help on a plugin
This commit is contained in:
@@ -88,7 +88,8 @@ class CommandLine(interfaces.plugins.FileConsumerInterface):
|
||||
|
||||
renderers = dict([(x.name.lower(), x) for x in framework.class_subclasses(text_renderer.CLIRenderer)])
|
||||
|
||||
parser = volargparse.HelpfulArgParser(prog = 'volatility',
|
||||
parser = volargparse.HelpfulArgParser(add_help=False,
|
||||
prog = 'volatility',
|
||||
description = "An open-source memory forensics framework")
|
||||
parser.add_argument("-c",
|
||||
"--config",
|
||||
@@ -149,6 +150,9 @@ class CommandLine(interfaces.plugins.FileConsumerInterface):
|
||||
help = "Clears out all short-term cached items",
|
||||
default = False,
|
||||
action = 'store_true')
|
||||
parser.add_argument("-h", "--help", action="help", default=argparse.SUPPRESS,
|
||||
help="Show this help message and exit. Use: volatility <pluginname> --help for help on a "
|
||||
"specific plugin.")
|
||||
|
||||
# We have to filter out help, otherwise parse_known_args will trigger the help message before having
|
||||
# processed the plugin choice or had the plugin subparser added.
|
||||
|
||||
Reference in New Issue
Block a user