injekt/slop — Issue #39: Command ideas
Author: epinault-ttc
Created: 2011-11-30 17:59:17+00:00
State: open

Following up ticket #38 , here is what I would like to see with command.

1) They should work similar to git? so

git help clone => show clone options and help
git help or --help => show generic help and available commands

Maybe it could be define as:

command :one, 'description' do
on :help => print current options help , combined with global options if any?
end

on :help => show list of commands?
on :v , 'Verbose'

or using the Slop.new(:help => true) , it does automatically what is describe above?

2) I would like to be able to nest command like

command :config do

command :one do
on :specific_to_one
end

command :two do
on :specific_to_two
end

on : common_opt_for_two_and_one
end

on :global_opt