Dump CLI arguments
This commit is contained in:
10
bin/argsdump
Executable file
10
bin/argsdump
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
MARK=${MARK:-}
|
||||||
|
|
||||||
|
echo "self=$0"
|
||||||
|
index=0
|
||||||
|
for arg in "$@"; do
|
||||||
|
index=$[ $index + 1 ]
|
||||||
|
echo "$index=${MARK}${arg}${MARK}"
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user