File: news.page

package info (click to toggle)
ruby-cmdparse 3.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ruby: 1,736; makefile: 11
file content (168 lines) | stat: -rw-r--r-- 4,446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
title: News
in_menu: true
sort_info: 8
---
## News

### 2020-12-08 cmdparse 3.0.7 released!

Changes:

* Behave well when interrupted via <kbd>Control+C</kbd> and when used in a pipe that gets closed
  (thanks to postmodern)


### 2020-05-02 cmdparse 3.0.6 released!

Changes:

* Fix OptParse integration with regards to error handling (thanks to Damien Robert)


### 2020-01-31 cmdparse 3.0.5 released!

Changes:

* Fix warning on Ruby 2.7 (thanks to Damien Robert)


### 2018-12-22 cmdparse 3.0.4 released!

Changes:

* Fix bug in help output generation when a word is longer than the available space - thanks to
  Damien Robert for the bug report and pull request


### 2017-01-13 cmdparse 3.0.3 released!

Changes:

* Fix bug introduced during refactoring that affected help output (continuation lines were missing)
  - thanks to Andrew Talbot for reporting the bug


### 2016-12-28 cmdparse 3.0.2 released!

Changes:

* Raise an error if too many arguments are provided for a command
* Better error message if not enough arguments are provided for a command


### 2015-03-14 cmdparse 3.0.1 released!

Changes:

* Commands in usage line are now shown sorted
* Long lines with embedded new lines are now correctly formatted
* The built-in version command can now be told to not add the `-v` and `--version` switches


### 2015-03-12 cmdparse 3.0.0 released!

This version is not compatible with previous versions of cmdparse and requires at least Ruby 2.0.
However, updating code to use the new API is straightforward and the new version offers more
features!

Changes:

* License changed to MIT!
* Top level options and global options are now separated
* Easier on the fly definition of commands
* Better help output (automatic formatting of long lines -- even for option descriptions --,
  automatic argument name detection,&nbsp;...)
* Keyword arguments are now used for better code readability
* The `CmdParse::VERSION` constant is now a simple version string instead of an array
* Better API documentation and expanded tutorial
* Better website design and integration of the API documentation into the website


### 2014-04-05 cmdparse 2.0.6 released!

There were no codewise changes but the used infrastructure and tools have been updated to newer
versions. Also the license information has been added to the gem specification and the tests are now
included in the distribution.


### 2012-06-09 cmdparse 2.0.5 released!

Changes:

* Fixed backwards incompatible change


### 2012-06-07 cmdparse 2.0.4 released!

Changes:

* Only some minor changes regarding the help output for commands which is nicer now.


### 2006-06-17 cmdparse 2.0.2 released!

Changes:

* Included two patches from Assaph Mehr:
  * partial command matching can now be used (see the [tutorial page](tutorial.html))
  * now a banner for the help and version commands can be specified


### 2006-04-05 cmdparse 2.0.1 released!

Changes:

* Just a bug fix release for those using cmdparse with Rubygems. By issuing the command
  `require_gem 'cmdparse'` the cmdparse library gets automagically loaded.
* Minor documentation updates


### 2005-08-16 cmdparse 2.0.0 released!

This version is not compatible to previous versions of cmdparse as there have been major changes in
the API. However, updating your code to use the new API is very easy!

Changes:

* Commands can now have subcommands which can have subcommands which can have subcommands...
* No need to implement a whole new class for simple commands anymore
* Default option parser library is `optparse`, however, any option parser library can be used after writing a small wrapper


### 2005-07-05 cmdparse 1.0.5 released!

Changes:

* added possibility to parse global options, command and local options separately


### 2005-06-16 cmdparse 1.0.4 released!

Changes:

* fix for older ruby versions
* fixed bug where exception was not caught


### 2005-06-09 cmdparse 1.0.3 released!

Changes:

* added optional graceful exception handling


### 2005-04-21 cmdparse 1.0.2 released!

Changes:

* splitted parsing of the arguments and executing the command into two methods


### 2005-04-13 cmdparse 1.0.1 released!

Changes:

* Improved HelpCommand: the global options -h and --help take an optional command name now
* Possibility to define a default command which is used when no command was specified
* A `NoCommandGivenError` is thrown when no command on the CLI and no default command was specified