diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index 778661edab64575c57b37cb6da500c5f2cc2051c..bb1977dfb664627c82f61497669ad8a5ff74cc43 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -612,7 +612,7 @@ help # and `compare`. Yields a block that returns params for `github_url`. def browse_command(args) url_only = args.delete('-u') - $stderr.puts "Warning: the `-p` flag has no effect anymore" if args.delete('-p') + warn "Warning: the `-p` flag has no effect anymore" if args.delete('-p') params = yield args.executable = url_only ? 'echo' : browser_launcher