getoptlong
The GetoptLong class allows you to parse command line options similarly to the GNU getopt_long() C library call. (by ruby)
optparse
OptionParser is a class for command-line option analysis. (by ruby)
getoptlong | optparse | |
---|---|---|
1 | 1 | |
5 | 49 | |
- | - | |
3.1 | 7.8 | |
7 months ago | 28 days ago | |
Ruby | Ruby | |
BSD 2-clause "Simplified" License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
getoptlong
Posts with mentions or reviews of getoptlong.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-27.
-
CLI in ruby using OptionParser or GetoptLong
We will start with GetoptLong library.
optparse
Posts with mentions or reviews of optparse.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-27.
-
CLI in ruby using OptionParser or GetoptLong
Next stop - OptionParser. Similar with GetoptLong we create an instance of OptionParser class with list of available params. There are an opts.banner option which allow us to add some text before list of available params.