提交 bb3c9b81 编写于 作者: M Mislav Marohnić

use `warn` instead of `$stderr.puts`

上级 88fb3e12
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册