Suggest ag -Q when relevant
This detects when `ag` suggests the `-Q` option, and adds it.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from thefuck.utils import for_app
|
||||
from thefuck.utils import replace_argument
|
||||
|
||||
|
||||
@for_app('ag')
|
||||
def match(command):
|
||||
return 'run ag with -Q' in command.stderr
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return command.script.replace('ag', 'ag -Q', 1)
|
||||
Reference in New Issue
Block a user