diff options
Diffstat (limited to 'sample/getoptlong/aliases.rb')
-rw-r--r-- | sample/getoptlong/aliases.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sample/getoptlong/aliases.rb b/sample/getoptlong/aliases.rb new file mode 100644 index 0000000000..895254c6ae --- /dev/null +++ b/sample/getoptlong/aliases.rb @@ -0,0 +1,8 @@ +require 'getoptlong' + +options = GetoptLong.new( + ['--xxx', '-x', '--aaa', '-a', '-p', GetoptLong::NO_ARGUMENT] +) +options.each do |option, argument| + p [option, argument] +end |