diff options
author | Burdette Lamar <[email protected]> | 2022-05-02 11:03:26 -0500 |
---|---|---|
committer | git <[email protected]> | 2022-05-03 01:09:33 +0900 |
commit | 51ac3c9e80562a63bbab4b67be916a9f37b6e842 (patch) | |
tree | b8612ab9e406c4dc30a4e3be8678bf7326b9845f /examples/getoptlong/simple.rb | |
parent | 8587bacc252e95e533d319cc58b58ec11e5561ff (diff) |
[ruby/getoptlong] Enhanced RDoc for GetoptLong (https://github.com/ruby/getoptlong/pull/4)
Detailed introductory material.
https://github.com/ruby/getoptlong/commit/1544f2fb7b
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] +) |