mosop / optarg Goto Github PK
View Code? Open in Web Editor NEWYet another Crystal library for parsing command-line options and arguments.
License: MIT License
Yet another Crystal library for parsing command-line options and arguments.
License: MIT License
As an experiment... But it's not clear to me how I correctly bring in the ARGC and ARGV from the command line into the option parsing.
Or do I totally misunderstand what I am doing? (I am an experienced programmer by the way.)
I've tried to use a few common names for options that haven't worked with optarg. Examples
-1
, eg to specify output on one line-A
, eg to turn off whatever -a
does-?
-D
What would it take to support those as options? I'm happy to assist in adding those capabilities if you're interested.
Error: abstract `def Comparable(T)#<=>(other : T)` must be implemented by Optarg::ValueTypes::StringArray::Value
I have a use case where I want to create an OptArg model which checks for "sub commands" and then I find another OptArg model based on the subcommand.
At the moment, because any extra options besides the sub commands cause an UnknownOption
exception to be thrown it prevents me from being able to elegantly handle things this way.
Is there room for a feature which allows for Silent unknown options? If so what would be the best way to implement so I can create a pull request?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.