Method not available on this version
This method is only available on newer versions. The first available version of the method is shown here.
reformatted_help_args(args)
public
Reformat the arguments passed to bundle that include a –help flag into the corresponding `bundle
help #{command}` call
Show source
def self.reformatted_help_args(args)
bundler_commands = all_commands.keys
help_flags = ]--help -h]
exec_commands = ]e ex exe exec]
help_used = args.index {|a| help_flags.include? a }
exec_used = args.index {|a| exec_commands.include? a }
command = args.find {|a| bundler_commands.include? a }
if exec_used && help_used
if exec_used + help_used == 1
]help exec]
else
args
end
elsif help_used
args = args.dup
args.delete_at(help_used)
["help", command || args].flatten.compact
else
args
end
end