mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
simplify pm3 help and provide shortcut to get client help
This commit is contained in:
parent
bf8cd5c00b
commit
73a9dff8db
1 changed files with 10 additions and 10 deletions
20
pm3
20
pm3
|
@ -261,20 +261,15 @@ Description:
|
||||||
To see a list of available ports, use --list.
|
To see a list of available ports, use --list.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
$SCRIPT [-n <N>] [-f] [-c <command>]|[-l <lua_script_file>]|[-s <cmd_script_file>] [-i]
|
$SCRIPT [-n <N>] [<any other proxmark3 client option>]
|
||||||
$SCRIPT [--list] [--help]
|
$SCRIPT [--list] [-h|--help] [-hh|--helpclient]
|
||||||
|
|
||||||
|
|
||||||
Arguments:
|
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
|
--list list all detected com ports
|
||||||
-n <N> connect device refered to the N:th number on the --list output
|
-n <N> connect device referred 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 <port> specifiy which port to connect to
|
|
||||||
|
|
||||||
|
|
||||||
Samples:
|
Samples:
|
||||||
|
@ -393,6 +388,11 @@ if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
# if a port is already provided, let's just run the command as such
|
||||||
for ARG in "$@"; do
|
for ARG in "$@"; do
|
||||||
if [ "$ARG" == "-p" ]; then
|
if [ "$ARG" == "-p" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue