mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-18 16:50:42 +01:00
12 lines
281 B
Python
12 lines
281 B
Python
from thefuck.utils import replace_argument, for_app
|
|
|
|
|
|
@for_app('php', at_least=2)
|
|
def match(command):
|
|
return ('-s' in command.script_parts
|
|
and command.script_parts[-1] != '-s')
|
|
|
|
|
|
def get_new_command(command):
|
|
return replace_argument(command.script, "-s", "-S")
|