github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/testscripts/commands/hugo__errors.txt (about) 1 # Testing error output. 2 3 # The hugo mod get command handles flags a little special, but the -h flag should print the help. 4 hugo mod get -h 5 stdout 'Resolves dependencies in your current Hugo Project' 6 7 # Invalid flag. Should print an error message to stderr and the help to stdout. 8 ! hugo --asdf 9 stderr 'unknown flag: --asdf' 10 stdout 'hugo is the main command' 11 12 # This should fail the build, print an error message to stderr, but no help output. 13 ! hugo 14 ! stdout 'hugo is the main command' 15 stderr 'failed to load config' 16 17 -- hugo.toml -- 18 invalid: toml