Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 474 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 474 Bytes

A small demo of building CLI using GLI

This is a demo app using the GLI gem to create a CLI in Ruby.

Examples

./commander test --provider leigh --async arg1 arg2

This example runs the test command. It passes a --provider flag with the value "leigh". It passes a --async switch. It passes 2 arguments

Output for this produces:

{"help"=>false, :help=>false}
{"provider"=>"leigh", :provider=>"leigh", "async"=>true, :async=>true}
["arg1", "arg2"]