forked from glenux/mfm
19 lines
351 B
Crystal
19 lines
351 B
Crystal
|
require "./abstract_command"
|
||
|
|
||
|
module GX::Commands
|
||
|
class GlobalHelp < AbstractCommand
|
||
|
def initialize(@config : GX::Config) # FIXME
|
||
|
end
|
||
|
|
||
|
def execute
|
||
|
STDOUT.puts ""
|
||
|
@config.help_options.try { |opts| puts opts.parser_snapshot }
|
||
|
exit(0)
|
||
|
end
|
||
|
|
||
|
def self.handles_mode
|
||
|
GX::Types::Mode::GlobalHelp
|
||
|
end
|
||
|
end
|
||
|
end
|