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
https://crystal-lang.org/api/0.34.0/OptionParser.html
require "option_parser" upcase = false destination = "World" OptionParser.parse do |parser| parser.banner = "Usage: salute [arguments]" parser.on("-u", "--upcase", "Upcases the salute") { upcase = true } parser.on("-t NAME", "--to=NAME", "Specifies the name to salute") { |name| destination = name } parser.on("-h", "--help", "Show this help") do puts parser exit end parser.invalid_option do |flag| STDERR.puts "ERROR: #{flag} is not a valid option." STDERR.puts parser exit(1) end end destination = destination.upcase if upcase puts "Hello #{destination}!"
The text was updated successfully, but these errors were encountered:
Related to #38
Sorry, something went wrong.
(We could also use Stefan's toka, which is already used as part of bindgen)
toka
True, but i noticed find_clang was absent of any shard dependencies. Using the built in lib would continue this.
No branches or pull requests
https://crystal-lang.org/api/0.34.0/OptionParser.html
The text was updated successfully, but these errors were encountered: