Class: ShopifyCli::Core::HelpResolver
- Inherits:
-
CLI::Kit::Resolver
- Object
- CLI::Kit::Resolver
- ShopifyCli::Core::HelpResolver
- Defined in:
- lib/shopify-cli/core/help_resolver.rb
Instance Method Summary collapse
Instance Method Details
#call(args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/shopify-cli/core/help_resolver.rb', line 6 def call(args) args = args.dup return super(args) unless args.first if args.first.include?('-h') || args.first.include?('--help') help = Commands::Help help.ctx = Context.new help.call([], nil) raise ShopifyCli::AbortSilent else super(args) end end |