Fix "unknown command" message when no suggestion

Updates #10953
This commit is contained in:
Bjørn Erik Pedersen
2023-05-22 17:09:43 +02:00
parent 9a0370e8eb
commit 288be1976d
3 changed files with 8 additions and 1 deletions

View File

@@ -1,7 +1,12 @@
# Testing various error situations.
! hugo mods
stderr 'unknown command "mods" for "hugo"'
stderr 'Did you mean this\?'
! hugo mod clea
stderr 'Did you mean this\?'
stderr 'clean'
! hugo mod foo
stderr 'unknown command "foo" for "hugo mod"'