Sha256: ed627bce8a9aa394f9e7cd482775ffdc2ff38dec0b8ad857cf37779cf8672cba
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
module MagicReveal class Cli class Options attr_accessor( :command, :project, ) def program_name @program_name ||= File.basename($0) end def parse args case args.first when 'new' if args.length != 2 @command = :help else @command = :new @project = args[1] end when 'force-reload' @command = :force_reload when 'start' @command = :start when 'static' @command = :static else # including help @command = :help end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_reveal-2.6.1.2 | lib/magic_reveal/cli/options.rb |
magic_reveal-2.6.1.1 | lib/magic_reveal/cli/options.rb |