1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#702: Make match in php_s rule more strict

This commit is contained in:
Vladimir Iakovlev 2017-10-16 19:09:44 +02:00
parent 75d2c43997
commit 054fd0b166

View File

@ -1,9 +1,10 @@
from thefuck.utils import replace_argument, for_app
@for_app('php')
@for_app('php', at_least=2)
def match(command):
return " -s " in command.script
return ('-s' in command.script_parts
and command.script_parts[-1] != '-s')
def get_new_command(command):