github sigoden/argc v0.6.0

latest releases: v1.24.0, v1.23.0, v1.22.0...
4 years ago

What's Changed

  • feat: add default positional arg by @sigoden in #15
  • feat: also pass shell positional parameters to fn by @sigoden in #16
  • feat: no need to explicitly pass -e option by @sigoden in #17

The code below reflects these changes

# @cmd
cmd() {
  echo "\$argc__args:" ${argc__args[@]}   # default positional parameters will be collected to argc_args 
  echo "\$@:" $@                          # argc pass shell positional parameters to fn 
}

eval "$(argc $0 "$@")"                    # no need to explicitly pass -e

Full Changelog: v0.5.0...v0.6.0

Don't miss a new argc release

NewReleases is sending notifications on new releases.