Skip to content

v1.1.0

Choose a tag to compare

@webdiscus webdiscus released this 06 Jul 21:18
· 6 commits to master since this release
840747a

Features

  • Short boolean flag: -f
  • Short flag with value: -f value
  • Grouped short flags: -abc (equivalent to -a -b -c)
  • Long boolean flag: --flag
  • Long flag with value: --key=value or --key value
  • Dashed long flag: --foo-bar (available as both flags['foo-bar'] and flags.fooBar)
  • Multi-values: --files a.js b.js
  • Short-to-long alias: -f = --files
  • Positional arguments and -- terminator: cmd -a --key=foo baz -- qux
  • Default values for flags