#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 -1
View File
@@ -1,4 +1,5 @@
from thefuck import utils
from thefuck.utils import replace_argument
@utils.git_support
@@ -9,4 +10,4 @@ def match(command, settings):
@utils.git_support
def get_new_command(command, settings):
return command.script.replace('-d', '-D')
return replace_argument(command.script, '-d', '-D')