diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index 63c9fe099c1ace112ff993282169905d59021e00..416046328874936d92cdf20c7e66f2d797ef40f8 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -478,7 +478,7 @@ module Hub if command == 'hub' puts hub_manpage exit - elsif command.nil? + elsif command.nil? && args.grep(/^--?a/).empty? ENV['GIT_PAGER'] = '' if args.grep(/^-{1,2}p/).empty? # Use `cat`. puts improved_help_text exit