1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 10:11:14 +00:00

Put errors in stderr instead of "echo ..." in stdout

This commit is contained in:
nvbn 2015-04-22 05:29:44 +02:00
parent d1b1465f4e
commit 126194ec2e

View File

@ -139,7 +139,7 @@ def main():
command = get_command(settings, sys.argv) command = get_command(settings, sys.argv)
if command: if command:
if is_second_run(command): if is_second_run(command):
print("echo Can't fuck twice") sys.stderr.write("Can't fuck twice\n")
return return
rules = get_rules(user_dir, settings) rules = get_rules(user_dir, settings)
@ -148,4 +148,4 @@ def main():
run_rule(matched_rule, command, settings) run_rule(matched_rule, command, settings)
return return
print('echo No fuck given') sys.stderr.write('No fuck given\n')