quick fix for #655 (#702)

* quick fix for #655

* Enabled by default and fix

* Test

* Added readme line

* This is unnecessary
This commit is contained in:
Stef Pletinck
2017-10-10 19:24:38 +02:00
committed by Vladimir Iakovlev
parent 21a916d953
commit e658f35bd9
3 changed files with 34 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from thefuck.utils import replace_argument, for_app
@for_app('php')
def match(command):
return "php -s" in command.script
def get_new_command(command):
return replace_argument(command.script, "-s", "-S")
requires_output = False