OLD | NEW |
| 1 ## 0.13.7 |
| 2 |
| 3 * Add explicit support for forwarding the value returned by `Command.run()` to |
| 4 `CommandRunner.run()`. This worked unintentionally prior to 0.13.6+1. |
| 5 |
| 6 * Add type arguments to `CommandRunner` and `Command` to indicate the return |
| 7 values of the `run()` functions. |
| 8 |
| 9 ## 0.13.6+1 |
| 10 |
| 11 * When a `CommandRunner` is passed `--help` before any commands, it now prints |
| 12 the usage of the chosen command. |
| 13 |
| 14 ## 0.13.6 |
| 15 |
| 16 * `ArgParser.parse()` now throws an `ArgParserException`, which implements |
| 17 `FormatException` and has a field that lists the commands that were parsed. |
| 18 |
| 19 * If `CommandRunner.run()` encounters a parse error for a subcommand, it now |
| 20 prints the subcommand's usage rather than the global usage. |
| 21 |
| 22 ## 0.13.5 |
| 23 |
| 24 * Allow `CommandRunner.argParser` and `Command.argParser` to be overridden in |
| 25 strong mode. |
| 26 |
| 27 ## 0.13.4+2 |
| 28 |
| 29 * Fix a minor documentation error. |
| 30 |
| 31 ## 0.13.4+1 |
| 32 |
| 33 * Ensure that multiple-value arguments produce reified `List<String>`s. |
| 34 |
| 35 ## 0.13.4 |
| 36 |
| 37 * By default, only the first line of a command's description is included in its |
| 38 parent runner's usage string. This returns to the default behavior from |
| 39 before 0.13.3+1. |
| 40 |
| 41 * A `Command.summary` getter has been added to explicitly control the summary |
| 42 that appears in the parent runner's usage string. This getter defaults to the |
| 43 first line of the description, but can be overridden if the user wants a |
| 44 multi-line summary. |
| 45 |
| 46 ## 0.13.3+6 |
| 47 |
| 48 * README fixes. |
| 49 |
| 50 ## 0.13.3+5 |
| 51 |
| 52 * Make strong mode clean. |
| 53 |
| 54 ## 0.13.3+4 |
| 55 |
| 56 * Use the proper `usage` getter in the README. |
| 57 |
| 58 ## 0.13.3+3 |
| 59 |
| 60 * Add an explicit default value for the `allowTrailingOptions` parameter to `new |
| 61 ArgParser()`. This doesn't change the behavior at all; the option already |
| 62 defaulted to `false`, and passing in `null` still works. |
| 63 |
| 64 ## 0.13.3+2 |
| 65 |
| 66 * Documentation fixes. |
| 67 |
| 68 ## 0.13.3+1 |
| 69 |
| 70 * Print all lines of multi-line command descriptions. |
| 71 |
1 ## 0.13.2 | 72 ## 0.13.2 |
2 | 73 |
3 * Allow option values that look like options. This more closely matches the | 74 * Allow option values that look like options. This more closely matches the |
4 behavior of [`getopt`][getopt], the *de facto* standard for option parsing. | 75 behavior of [`getopt`][getopt], the *de facto* standard for option parsing. |
5 | 76 |
6 [getopt]: http://man7.org/linux/man-pages/man3/getopt.3.html | 77 [getopt]: http://man7.org/linux/man-pages/man3/getopt.3.html |
7 | 78 |
8 ## 0.13.1 | 79 ## 0.13.1 |
9 | 80 |
10 * Add `ArgParser.addSeparator()`. Separators allow users to group their options | 81 * Add `ArgParser.addSeparator()`. Separators allow users to group their options |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 * Widen the version constraint on the `collection` package. | 133 * Widen the version constraint on the `collection` package. |
63 | 134 |
64 ## 0.12.0+1 | 135 ## 0.12.0+1 |
65 | 136 |
66 * Remove the documentation link from the pubspec so this is linked to | 137 * Remove the documentation link from the pubspec so this is linked to |
67 pub.dartlang.org by default. | 138 pub.dartlang.org by default. |
68 | 139 |
69 ## 0.12.0 | 140 ## 0.12.0 |
70 | 141 |
71 * Removed public constructors for `ArgResults` and `Option`. | 142 * Removed public constructors for `ArgResults` and `Option`. |
72 | 143 |
73 * `ArgResults.wasParsed()` can be used to determine if an option was actually | 144 * `ArgResults.wasParsed()` can be used to determine if an option was actually |
74 parsed or the default value is being returned. | 145 parsed or the default value is being returned. |
75 | 146 |
76 * Replaced `isFlag` and `allowMultiple` fields in the `Option` class with a | 147 * Replaced `isFlag` and `allowMultiple` fields in the `Option` class with a |
77 three-value `OptionType` enum. | 148 three-value `OptionType` enum. |
78 | 149 |
79 * Options may define `valueHelp` which will then be shown in the usage. | 150 * Options may define `valueHelp` which will then be shown in the usage. |
80 | 151 |
81 ## 0.11.0 | 152 ## 0.11.0 |
82 | 153 |
83 * Move handling trailing options from `ArgParser.parse()` into `ArgParser` | 154 * Move handling trailing options from `ArgParser.parse()` into `ArgParser` |
84 itself. This lets subcommands have different behavior for how they handle | 155 itself. This lets subcommands have different behavior for how they handle |
85 trailing options. | 156 trailing options. |
86 | 157 |
87 ## 0.10.0+2 | 158 ## 0.10.0+2 |
88 | 159 |
89 * Usage ignores hidden options when determining column widths. | 160 * Usage ignores hidden options when determining column widths. |
OLD | NEW |