mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
![]() Create `ClassCommand::Options` class, which ties up sub commands and default options together. Let's consider the command `food make --tea`. `food` is a command, `make` is a sub command and `--tea` is an option of `make` sub command. We can access `--tea` via `opts[:make][:tea]. Also, we can check the freshness of our food like so: `food --freshness`. `--freshness` is a default option. We can access it like so: `opts.freshness?` or `opts[:freshness]`. Add unit tests for `ClassCommand::Option` and some other tests that reflect the additions. Finally, document everything and fix different typos in the existing documentation. Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com> |
||
---|---|---|
.. | ||
commands | ||
fixtures | ||
candidate_helper1.rb | ||
candidate_helper2.rb | ||
cli_spec.rb | ||
code_spec.rb | ||
command_helpers_spec.rb | ||
command_integration_spec.rb | ||
command_set_spec.rb | ||
command_spec.rb | ||
completion_spec.rb | ||
control_d_handler_spec.rb | ||
example_nesting.rb | ||
exception_whitelist_spec.rb | ||
helper.rb | ||
history_array_spec.rb | ||
hooks_spec.rb | ||
indent_spec.rb | ||
input_stack_spec.rb | ||
method_spec.rb | ||
prompt_spec.rb | ||
pry_defaults_spec.rb | ||
pry_history_spec.rb | ||
pry_output_spec.rb | ||
pry_spec.rb | ||
sticky_locals_spec.rb | ||
syntax_checking_spec.rb | ||
testrc | ||
testrcbad | ||
wrapped_module_spec.rb |