As opposed to a global option to the command, it would be nice to be able to specify a command-scoped option that applies to all commands and then have some commands opt-out of it. For example, suppose several commands create an output file. Instead of
command :foo do |c|
c.flag [:o.:output_file]
end
command :bar do |c|
c.flag [:o.:output_file]
end
command :baz do |c|
end
It could look like:
all_commands.flag [:o,:output_file]
command :foo do |c|
end
command :bar do |c|
end
command :baz do |c|
c.except_flag :o
end