From 73a9dff8dbf3c994c95631be5bf2a074b7149e48 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 4 Jun 2021 22:27:18 +0200 Subject: [PATCH] simplify pm3 help and provide shortcut to get client help --- pm3 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pm3 b/pm3 index 2bd874bf3..531f80b39 100755 --- a/pm3 +++ b/pm3 @@ -261,20 +261,15 @@ Description: To see a list of available ports, use --list. Usage: - $SCRIPT [-n ] [-f] [-c ]|[-l ]|[-s ] [-i] - $SCRIPT [--list] [--help] + $SCRIPT [-n ] [] + $SCRIPT [--list] [-h|--help] [-hh|--helpclient] Arguments: - --help this help + -h/--help this help + -hh/--helpclient proxmark3 client help (the script will forward these options) --list list all detected com ports - -n connect device refered to the N:th number on the --list output - -c 'cmd' execute the pm3 cmd in client and exit afterwards - -i interactive, stay in client after executing a cmd or script - -s 'script' execute a cmd script file and exit afterwards - -l 'luascript' execute a lua script file and exit afterwards - -w wait - -p specifiy which port to connect to + -n connect device referred to the N:th number on the --list output Samples: @@ -393,6 +388,11 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then exit 0 fi +if [ "$1" == "-hh" ] || [ "$1" == "--helpclient" ]; then + CMD "-h" + exit 0 +fi + # if a port is already provided, let's just run the command as such for ARG in "$@"; do if [ "$ARG" == "-p" ]; then