From b447948c75956566135fe87a083ea6c5fb241592 Mon Sep 17 00:00:00 2001
From: Florian Bruhin <me@the-compiler.org>
Date: Sun, 1 Dec 2019 20:42:16 +0100
Subject: [PATCH] Improve help output for --dd

Make it clear that ext/cmd are optional and that the type can be a regular
expression.
---
 src/binwalk/modules/extractor.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/binwalk/modules/extractor.py b/src/binwalk/modules/extractor.py
index 703c85d..f0407ac 100644
--- a/src/binwalk/modules/extractor.py
+++ b/src/binwalk/modules/extractor.py
@@ -59,9 +59,10 @@ class Extractor(Module):
         Option(short='D',
                long='dd',
                type=list,
-               dtype='type:ext:cmd',
+               dtype='type[:ext[:cmd]]',
                kwargs={'manual_rules': [], 'enabled': True},
-               description='Extract <type> signatures, give the files an extension of <ext>, and execute <cmd>'),
+               description='Extract <type> signatures (regular expression), give the files an extension of <ext>, '
+                           'and execute <cmd>'),
         Option(short='M',
                long='matryoshka',
                kwargs={'matryoshka': 8},
--
libgit2 0.26.0