From 817aaab258207419240ed4570e21d11100bb423f Mon Sep 17 00:00:00 2001 From: Nex Date: Wed, 18 Aug 2021 13:24:10 +0200 Subject: [PATCH] Indicate in help message that option can be invoked multiple times --- mvt/android/cli.py | 4 ++-- mvt/ios/cli.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mvt/android/cli.py b/mvt/android/cli.py index dd814ea..c5ab781 100644 --- a/mvt/android/cli.py +++ b/mvt/android/cli.py @@ -94,7 +94,7 @@ def download_apks(ctx, all_apks, virustotal, koodous, all_checks, output, from_f @cli.command("check-adb", help="Check an Android device over adb") @click.option("--serial", "-s", type=str, help=SERIAL_HELP_MESSAGE) @click.option("--iocs", "-i", type=click.Path(exists=True), multiple=True, - default=[], help="Path to indicators file") + default=[], help="Path to indicators file (can be invoked multiple times)") @click.option("--output", "-o", type=click.Path(exists=False), help="Specify a path to a folder where you want to store JSON results") @click.option("--list-modules", "-l", is_flag=True, help="Print list of available modules and exit") @@ -157,7 +157,7 @@ def check_adb(ctx, iocs, output, list_modules, module, serial): @cli.command("check-backup", help="Check an Android Backup") @click.option("--serial", "-s", type=str, help=SERIAL_HELP_MESSAGE) @click.option("--iocs", "-i", type=click.Path(exists=True), multiple=True, - default=[], help="Path to indicators file") + default=[], help="Path to indicators file (can be invoked multiple times)") @click.option("--output", "-o", type=click.Path(exists=False), help=OUTPUT_HELP_MESSAGE) @click.argument("BACKUP_PATH", type=click.Path(exists=True)) @click.pass_context diff --git a/mvt/ios/cli.py b/mvt/ios/cli.py index d46f296..b5e4a8d 100644 --- a/mvt/ios/cli.py +++ b/mvt/ios/cli.py @@ -122,7 +122,7 @@ def extract_key(password, backup_path, key_file): #============================================================================== @cli.command("check-backup", help="Extract artifacts from an iTunes backup") @click.option("--iocs", "-i", type=click.Path(exists=True), multiple=True, - default=[], help="Path to indicators file") + default=[], help="Path to indicators file (can be invoked multiple time)") @click.option("--output", "-o", type=click.Path(exists=False), help=OUTPUT_HELP_MESSAGE) @click.option("--fast", "-f", is_flag=True, help="Avoid running time/resource consuming features") @click.option("--list-modules", "-l", is_flag=True, help="Print list of available modules and exit") @@ -185,7 +185,7 @@ def check_backup(ctx, iocs, output, fast, backup_path, list_modules, module): #============================================================================== @cli.command("check-fs", help="Extract artifacts from a full filesystem dump") @click.option("--iocs", "-i", type=click.Path(exists=True), multiple=True, - default=[], help="Path to indicators file") + default=[], help="Path to indicators file (can be invoked multiple time)") @click.option("--output", "-o", type=click.Path(exists=False), help=OUTPUT_HELP_MESSAGE) @click.option("--fast", "-f", is_flag=True, help="Avoid running time/resource consuming features") @click.option("--list-modules", "-l", is_flag=True, help="Print list of available modules and exit") @@ -249,7 +249,7 @@ def check_fs(ctx, iocs, output, fast, dump_path, list_modules, module): #============================================================================== @cli.command("check-iocs", help="Compare stored JSON results to provided indicators") @click.option("--iocs", "-i", type=click.Path(exists=True), multiple=True, - default=[], required=True, help="Path to indicators file") + default=[], required=True, help="Path to indicators file (can be invoked multiple time)") @click.option("--list-modules", "-l", is_flag=True, help="Print list of available modules and exit") @click.option("--module", "-m", help="Name of a single module you would like to run instead of all") @click.argument("FOLDER", type=click.Path(exists=True))