GetoptLong for Ruby
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.
$
pkg install rubygem-getoptlongOrigin
devel/rubygem-getoptlong
Size
35.1KiB
License
BSD2CLAUSE, RUBY
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
3 packages