How would you make a function that gets arguments?function arg_example {    arg c  # This is imaginary but it would return 'true' if it found the argument -c.    did_find_arg=$?  # Get the previous function (arg)'s output.    if [$did_find_arg == 'true']; then        echo Yes!    else        echo Not found.    fi}# Testingarg_example  # Not found.arg_example -c  # Yes!arg_example -k  # Not found.Also, how would you find the value of a key-value function, eg --name:function hello {    echo Hello, $--name!}EDIT: I know how to use $1 and $2, but I'd like to know how to get optional things like -v or --version.
Pass a function arguments?
shell;function;arguments