Skip to content

Commit a677714

Browse files
authored
Merge pull request #1538 from Abyss-W4tcher/plugins_argparse_epilogue
Introduce customizable plugin arparse epilog
2 parents bedcaa2 + 8842375 commit a677714

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

volatility3/cli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def run(self):
367367
plugin,
368368
help=plugin_list[plugin].__doc__,
369369
description=plugin_list[plugin].__doc__,
370+
epilog=plugin_list[plugin].additional_description,
370371
)
371372
self.populate_requirements_argparse(plugin_parser, plugin_list[plugin])
372373

volatility3/framework/constants/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# We use the SemVer 2.0.0 versioning scheme
22
VERSION_MAJOR = 2 # Number of releases of the library with a breaking change
3-
VERSION_MINOR = 15 # Number of changes that only add to the interface
3+
VERSION_MINOR = 16 # Number of changes that only add to the interface
44
VERSION_PATCH = 0 # Number of changes that do not change the interface
55
VERSION_SUFFIX = ""
66

volatility3/framework/interfaces/plugins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class PluginInterface(
112112
# Be careful with inheritance around this (We default to requiring a version which doesn't exist, so it must be set)
113113
_required_framework_version: Tuple[int, int, int] = (0, 0, 0)
114114
"""The _version variable is a quick way for plugins to define their current interface, it should follow SemVer rules"""
115+
additional_description: str = None
116+
"""Display additional description of the plugin after the description of the arguments. See: https://docs.python.org/3/library/argparse.html#epilog"""
115117

116118
def __init__(
117119
self,

0 commit comments

Comments
 (0)