diff options
Diffstat (limited to 'lib/plum/rack/cli.rb')
-rw-r--r-- | lib/plum/rack/cli.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/plum/rack/cli.rb b/lib/plum/rack/cli.rb index 967764f..bc5a767 100644 --- a/lib/plum/rack/cli.rb +++ b/lib/plum/rack/cli.rb @@ -3,7 +3,11 @@ require "rack/builder" module Plum module Rack + # CLI runner. Parses command line options and start ::Plum::Rack::Server. class CLI + # Creates new CLI runner and parses command line. + # + # @param argv [Array<String>] ARGV def initialize(argv) @argv = argv @options = {} @@ -11,6 +15,7 @@ module Plum parse! end + # Starts ::Plum::Rack::Server def run @server.start end |