#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,7 +1,7 @@
import os
import re
from subprocess import check_output
from thefuck.utils import get_closest
from thefuck.utils import get_closest, replace_argument
# Formulars are base on each local system's status
@@ -40,4 +40,4 @@ def get_new_command(command, settings):
command.stderr)[0]
exist_formula = _get_similar_formula(not_exist_formula)
return command.script.replace(not_exist_formula, exist_formula, 1)
return replace_argument(command.script, not_exist_formula, exist_formula)