Added instructions for help on a plugin

This commit is contained in:
Niklas Neierl
2020-07-11 11:52:31 +01:00
committed by ikelos
parent 07ddbb60f7
commit 077cdfb36e
+5 -1
View File
@@ -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.