Sha256: c8d6c27d926f49af380f078deb759744da319a328ed4664172355e8e99300ba7
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
# frozen_string_literal: true module Branch module Name module Subcommands # This module helps fix a bug in Thor that prohibits help for nested # subcommands from displaying help properly. Nested subcommands fail # to display their subcommand ancestor command name. This fixes that # bug. This module is used in conjunction with the Nestable module. module HelpNestable class << self def included(base) # Thor override base.desc 'help [COMMAND]', 'Describe available commands or one specific command' base.subcommand_help_override "config init help [SUBCOMMAND]" def help(command = nil, subcommand = false) super end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
branch-name-3.0.0 | lib/branch/name/subcommands/help_nestable.rb |