diff options
Diffstat (limited to 'examples/getoptlong/simple.rb')
-rw-r--r-- | examples/getoptlong/simple.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/getoptlong/simple.rb b/examples/getoptlong/simple.rb new file mode 100644 index 0000000000..1af6447632 --- /dev/null +++ b/examples/getoptlong/simple.rb @@ -0,0 +1,7 @@ +require 'getoptlong' + +options = GetoptLong.new( + ['--number', '-n', GetoptLong::REQUIRED_ARGUMENT], + ['--verbose', '-v', GetoptLong::OPTIONAL_ARGUMENT], + ['--help', '-h', GetoptLong::NO_ARGUMENT] +) |