Add support for parsing command line parameters from other sources than ARGV (#483)

This commit is contained in:
Diego Guraieb 2018-11-30 13:16:08 -03:00 committed by Serdar Dogruyol
parent 50f48509fd
commit a5d8df7382
3 changed files with 18 additions and 13 deletions

View file

@ -51,7 +51,7 @@ describe "Config" do
test_option = opt
end
end
Kemal::CLI.new
Kemal::CLI.new ARGV
test_option.should eq("FOOBAR")
end