mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-15 15:20:42 +01:00
#517: Little refactoring
This commit is contained in:
parent
2988e4871f
commit
3893e0cdca
@ -4,7 +4,7 @@ from thefuck.utils import replace_argument, for_app
|
|||||||
|
|
||||||
@for_app('cargo', at_least=1)
|
@for_app('cargo', at_least=1)
|
||||||
def match(command):
|
def match(command):
|
||||||
return ('o such subcommand' in command.stderr
|
return ('no such subcommand' in command.stderr.lower()
|
||||||
and 'Did you mean' in command.stderr)
|
and 'Did you mean' in command.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user