Print out the new style help with -h and --help instead of the old-style help.
This commit is contained in:
parent
de66f7ad6a
commit
01cbc9cc6c
@ -5,9 +5,11 @@ module Compass::Exec
|
||||
if Compass::Commands.command_exists? arguments.first
|
||||
SubCommandUI
|
||||
else
|
||||
unless arguments.include?("-h") || arguments.include?("--help")
|
||||
Compass::Logger.new.red do
|
||||
Haml::Util.haml_warn "WARNING: This interface is deprecated. Please use the new subcommand interface.\nSee `compass help` for more information.\n"
|
||||
end
|
||||
end
|
||||
SwitchUI
|
||||
end
|
||||
end
|
||||
|
@ -89,6 +89,11 @@ END
|
||||
self.options[:pattern] = pattern
|
||||
end
|
||||
|
||||
opts.on('-h', '--help') do
|
||||
self.options[:command] = :help
|
||||
self.options[:help_command] = :help
|
||||
end
|
||||
|
||||
opts.on('--write-configuration', "Write the current configuration to the configuration file.") do
|
||||
self.options[:command] = :write_configuration
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user