Commit graph

6 commits

Author SHA1 Message Date
Denis Knauf 3cc205cb02 ruby-2.5-support fix. usage with rest-arguments.
ruby-2.5 does not support `String#split() {|t|}`.  splits are replaced
by `String#split().each {|t|}`.

Usage supports printing rest-arguments.  It uses the name with three dots:

  command [<argname> ...]

Sub-commands has a generic `<command> ...` or `[<command> ...]`.
The last will be used if a nil-aliases exists.
2021-12-08 23:52:05 +01:00
Denis Knauf d2158e08ea Usage of short options without = 2021-12-08 00:17:37 +01:00
Denis Knauf df15912e7a Sub#commands|CMD#commands should yield(name,self).
assert_type for debugging.  Commented out.
2021-12-07 23:48:28 +01:00
Denis Knauf 09c4c46d25 help_full for printing recursive all available commands. support for --[no-]opt. 2021-11-30 23:09:06 +01:00
Denis Knauf d3930c00bc opts-mething redesign. completion improved. example: args-command for demonstrate arguments and options. 2021-11-30 15:23:05 +01:00
Denis Knauf ec3a936b36 example added. bugfixes. .gitignore 2020-12-13 17:06:00 +01:00