1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-18 16:50:42 +01:00
thefuck/thefuck/rules/php_s.py
2017-10-16 19:09:44 +02:00

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")