blob: ace72a099f03b73735fb2fff4bfded8aea322a0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
The GetoptLong class allows you to parse command line options similarly to the
GNU getopt_long() C library call. Note, however, that GetoptLong is a pure Ruby
implementation.
GetoptLong allows for POSIX-style options like --file as well as single letter
options like -f
The empty option -- (two minus symbols) is used to end option processing. This
can be particularly important if options have optional arguments.
WWW: https://github.com/ruby/getoptlong
|