We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.)
The text was updated successfully, but these errors were encountered:
Hi :) You can use the ARGV variable like this:
main.cr:
require "optarg" class Model < Optarg::Model arg "foo" end result = Model.parse(ARGV) puts result.foo
in your terminal:
crystal main.cr -- ":)"
output:
:)
Sorry, something went wrong.
No branches or pull requests
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.)
The text was updated successfully, but these errors were encountered: