clarify -F command-line option usage more

This commit is contained in:
Josh Holtrop 2019-07-09 22:13:22 -04:00
parent ba98af1424
commit 66d2700faa
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ USAGE = <<EOF
Usage: #{$0} [global options] [operation] [operation options]
Global options:
-F, --show-failure Show previous failed command(s) and exit
-F, --show-failure Show failed command log from previous build and exit
--version Show rscons version and exit
-h, --help Show rscons help and exit
-r COLOR, --color=COLOR Set color mode (off, auto, force)

View File

@ -284,7 +284,7 @@ module Rscons
unless @process_failures.empty?
msg = @process_failures.join("\n")
if Cache.instance["failed_commands"].size > 0
msg += "\nRun `#{$0} -F` to see the failed command(s)."
msg += "\nUse -F to view the failed command log from the previous build operation"
end
raise BuildError.new(msg)
end

View File

@ -998,7 +998,7 @@ EOF
result = run_rscons
expect(result.stderr).to match /Failed to build/
expect(result.stderr).to match /^Run.*-F.*to see the failed command/
expect(result.stderr).to match /^Use.*-F.*to view the failed command log/
expect(result.status).to_not eq 0
result = run_rscons(rscons_args: %w[-F])