#N/A Add replace_argument helper

This commit is contained in:
nvbn
2015-07-24 00:39:56 +03:00
parent f9f0948349
commit 469c5a60b0
19 changed files with 61 additions and 36 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from thefuck.utils import get_closest
from thefuck.utils import get_closest, replace_argument
import re
@@ -17,4 +17,4 @@ def get_new_command(command, settings):
new_cmd = get_closest(old_cmd, suggestions)
return command.script.replace(old_cmd, new_cmd)
return replace_argument(command.script, old_cmd, new_cmd)