added thing
This commit is contained in:
@@ -236,7 +236,8 @@ module CliGen
|
||||
end
|
||||
|
||||
when MatchType::NoMatch
|
||||
abort "ERROR : CommandNode(#{@name}).process : No command, subcommand or flag match for '#{arg.value}'"
|
||||
puts "ERROR : CommandNode(#{@name}).process : No command, subcommand or flag match for '#{arg.value}'"
|
||||
abort help
|
||||
end
|
||||
end
|
||||
|
||||
@@ -260,8 +261,8 @@ module CliGen
|
||||
{% if T.has_method?(:main) %}
|
||||
cls.main
|
||||
{% else %}
|
||||
puts help
|
||||
puts "ERROR : CommandNode({{T}})\#{{@def.name}} : No subcommand matched and no #main defined"
|
||||
puts help
|
||||
{% end %}
|
||||
exit 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user