Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 13 Mar 14:05

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