mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
#702: Make match
in php_s
rule more strict
This commit is contained in:
parent
75d2c43997
commit
054fd0b166
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user