Is there any easy way to pass (receive) named parameters to a shell script?
For example,
my_script -p_out '/some/path' -arg_1 '5'
And inside my_script.sh
receive them as:
# I believe this notation does not work, but is there anything close to it?
p_out=$ARGUMENTS['p_out']
arg1=$ARGUMENTS['arg_1']
printf "Argument p_out is %s" "$p_out"
printf "Argument arg_1 is %s" "$arg_1"
Is this possible in Bash or Zsh?