refact(man): do not match if there's no argument to man
If there's no argument to man, a call to thefuck should just give no fuck. Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
def match(command, settings):
|
||||
return command.script.startswith('man')
|
||||
return command.script.strip().startswith('man ')
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
|
||||
Reference in New Issue
Block a user