You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following example if you call the command "init -n" and don't pass a value for "-n" GLI prints the main help for the entire application instead of printing the help for the command that was being called "init"
#!/usr/bin/env ruby
require 'gli'
require 'json'
include GLI::App
program_desc 'Describe your application here'
version Testit::VERSION
subcommand_option_handling :normal
arguments :strict
command :init do |c|
c.flag :n,
:type => String,
:desc => 'Name',
:required => true
c.action do |_, _, _|
puts "test"
end
end
The text was updated successfully, but these errors were encountered:
In the following example if you call the command "init -n" and don't pass a value for "-n" GLI prints the main help for the entire application instead of printing the help for the command that was being called "init"
The text was updated successfully, but these errors were encountered: