diff options
Diffstat (limited to 'exe')
-rwxr-xr-x | exe/bundle | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/exe/bundle b/exe/bundle index 5baa52235a..a6068daad3 100755 --- a/exe/bundle +++ b/exe/bundle @@ -16,5 +16,11 @@ end require "bundler/friendly_errors" Bundler.with_friendly_errors do require "bundler/cli" - Bundler::CLI.start(ARGV, :debug => true) + + # Allow any command to use --help flag to show help for that command + help_flags = %w(--help -h) + help_flag_used = ARGV.any? {|a| help_flags.include? a } + args = help_flag_used ? Bundler::CLI.reformatted_help_args(ARGV) : ARGV + + Bundler::CLI.start(args, :debug => true) end |