Skip to content

Releases: leo/args

v1.2.0

06 Jun 13:42
@leo leo
Compare
Choose a tag to compare

New

  • Alphabetically ordered commands and options: ac8698e
  • It's now possible to use falsy values like 0 as default values for options. So if a default value is falsy, args will firstly check if there's a proper initializer associated to the option. If there's one, it will be used (instead of the default value) to determine the type of the option: d9b5fd1
  • Coloured usage information: ccb39c9

v1.1.0

24 May 10:16
@leo leo
Compare
Choose a tag to compare

New

Fixed

  • Minor tweaks within README.md: 344f326 and 9b59389
  • As part of the existing tests, we're now also linting the code style using ESLint. For the configuration, my default package (eslint-config-default) is used
  • Added test for usage information: d169f39

v1.0.2

13 May 10:06
@leo leo
Compare
Choose a tag to compare

Fixed

  • The usage information will now only include commands and options if they're available. If they aren't, their section will be left out when showing the help
  • If the help has been disabled through config.help, its command and options also won't show up in the usage information anymore: 59161fc
  • Now using a babel preset that has been created specifically for node: 5107883
  • If no commands or options are defined at all, a special message will be logged: 6578f2c

v1.0.1

10 May 10:31
@leo leo
Compare
Choose a tag to compare

Fixed

  • The version's [value] suffix doesn't show up in the usage information anymore (c7d62b2)
  • A command's initialiser will only be run if it's a function (525e669)
  • Renamed "config" to "flags" in README so that devs confuse it with the main config (a15fa4d)
  • Started using dynamic versions in tests (6974ea9)

v1.0.0

10 May 09:04
@leo leo
Compare
Choose a tag to compare

New

  • Support for magic globals has been dropped: #7
  • Since the "default" argument of .option() is much more often used than the custom initialiser, it's now the third instead of the fourth argument: #1
  • Retrieving sub arguments should now be done using .sub(): #5. This new properly doesn't simply contain all of the raw parsed stuff from minimist anymore. Instead of that, it only contains the arguments after the command.
  • It's now possible to specify a custom initializer when using .command(). If this function is defined, it will be run instead of the respective binary.
  • Unhandled promise rejections now fail loudly: #10
  • The module now also works on Node v5 (03e0fa9)

Fixed

  • Added a missing word to readme (fe62b83)
  • We're now testing the code using AVA and Travis CI
  • Aligned badge links properly (c5ac832)

Note

This release introduces many breaking changes. So when upgrading to this version, please take a look at the updated API documentation to understand how everything works now.

v0.3.1

08 May 12:11
@leo leo
Compare
Choose a tag to compare

Fixed

  • All of the source code is now documented with comments (ec1ab9e and 7214a46)
  • Option defaults will be respected again (a0ef7a3)
  • Content of .raw was missing the commands. They're back! (95a0a34)
  • We won't raise errors for commands that aren't defined anymore. This allows people to use a custom value after the command again (1c606ac)
  • Fixed an issue that made the bottom of README.md look bad (b4568b9)

v0.3.0

07 May 20:51
@leo leo
Compare
Choose a tag to compare

New

  • The default options and commands can now be disabled through options
  • The usage information can now be shown by calling .showHelp()
  • If a command or option hasn't been defined, args will now let the user now. If you don't want this behaviour in your project, you can disable it by setting the "error" option to false

Fixed

  • The README.md previously showed .raw as .args - now fixed!
  • Tweaked some other less important things within the same file

v0.2.0

06 May 13:12
@leo leo
Compare
Choose a tag to compare

New

  • It's now possible two reach the raw, parsed arguments from minimist: args.raw
  • API docs for new .raw method added

Fixed

  • Tweaked README.md
  • Fixed a bug that caused npm's site to scroll to the bottom automatically

v0.1.1

05 May 12:46
@leo leo
Compare
Choose a tag to compare

Fixed

  • When using the help command, the usage information gets outputted
  • The same now also shows the version option again

v0.1.0

05 May 11:16
@leo leo
Compare
Choose a tag to compare

Hello world! This release marks the initial development release of args.