Add -- to proxmark3 client to pass args to scripts

Examples:
pm3 -y myscript.py -- -h
pm3 -y myscript.py -- --input foo --output bar

This enables usage in scripts shebang, e.g.
  #!/usr/bin/env -S uv run --with pycryptodome pm3 -y
This commit is contained in:
Philippe Teuwen committed 2025-11-13 09:29:05 +01:00
1 parent e10e1135d2
commit 210b9a704c
3 files changed
+34 -5

No files matched your search

+3
View File
@@ -424,6 +424,9 @@ fi
# priority to the help options
for ARG; do
if [ "$ARG" == "--" ]; then
break
fi
if [ "$ARG" == "-h" ] || [ "$ARG" == "--help" ]; then
HELP
exit 0