Module: Aladdin::Commands::Server

Extended by:
Server
Included in:
Server
Defined in:
lib/aladdin/commands/server.rb

Overview

Examples:

$> aladdin server path/to/lesson/root

Instance Method Summary collapse

Instance Method Details

#parse!(argv) ⇒ Void

Parses the command line arguments.

Parameters:

  • argv (Array)

    command line arguments

Returns:

  • (Void)


16
17
18
19
20
21
# File 'lib/aladdin/commands/server.rb', line 16

def parse!(argv)
  opt_parser = OptionParser.new do |opts|
    opts.banner = "Usage: aladdin server [options] [LESSON_PATH]"
  end
  opt_parser.parse! argv
end