mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 06:34:09 +00:00
Merge pull request #562 from josephfrazier/man-help
Suggest `foo --help` when `man foo` shows no pages
This commit is contained in:
@@ -23,7 +23,8 @@ def test_not_match(command):
|
||||
|
||||
|
||||
@pytest.mark.parametrize('command, new_command', [
|
||||
(Command('man read'), ['man 3 read', 'man 2 read']),
|
||||
(Command('man read'), ['man 3 read', 'man 2 read', 'read --help']),
|
||||
(Command('man missing', stderr="No manual entry for missing\n"), ['missing --help']),
|
||||
(Command('man 2 read'), 'man 3 read'),
|
||||
(Command('man 3 read'), 'man 2 read'),
|
||||
(Command('man -s2 read'), 'man -s3 read'),
|
||||
|
||||
Reference in New Issue
Block a user