Releases: leo/args
Releases · leo/args
v1.2.0
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
New
- Config option for filtering the usage information: dc7f845, 3b172e2 and 96bdaf6
- As suggested in #13, there's now a config option that allows you to append a string to the "Usage" section of the auto-generated usage information
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
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
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
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
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
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