Commit Graph

14 Commits (c946a093f79f7538773e0551359f4322ff2b1d51)

Author SHA1 Message Date
Denis Knauf c946a093f7 aliases are strings only or nil. more examples. 2022-01-30 14:18:20 +01:00
Denis Knauf 09b467f7bd defined_in for determine already defined commands/aliases. 2022-01-30 01:41:54 +01:00
Denis Knauf ba922fe52c warnings/exception because of already used aliases more verbose. 2021-12-31 15:13:40 +01:00
Denis Knauf ec025652c9 noshortaliases fixed (meaning swapped) 2021-12-09 14:04:27 +01:00
Denis Knauf 7be062c1db min: false for no shorts. noshortaliases only for Sub-commands 2021-12-09 13:28:46 +01:00
Denis Knauf 2c654f2941 noshortaliases. warn or raise if alias already exists 2021-12-09 13:17:13 +01:00
Denis Knauf 6254349aa9 tests implemented. do not overwrite cmds by aliases. `call *a, **o` behaviour differs 2.5 <=> 2.7 2021-12-09 13:02:12 +01:00
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 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 fa5fbf8f6f options instead of arguments. arguments checking against arity if lambda. help improved. 2021-01-03 16:28:12 +01:00
Denis Knauf 27ca6faf31 desc renamed to description. arguments implemented (first dirty try) 2021-01-03 13:42:00 +01:00
Denis Knauf cae3692008 Fixing Exceptions and Exception-Handling 2020-12-28 00:29:54 +01:00
Denis Knauf ad6f53bab3 file-seperated classes. interactive CLI. 2020-12-27 23:00:53 +01:00