#N/A Add replace_argument helper
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user