clarify -F command-line option usage more
This commit is contained in:
parent
ba98af1424
commit
66d2700faa
@ -5,7 +5,7 @@ USAGE = <<EOF
|
|||||||
Usage: #{$0} [global options] [operation] [operation options]
|
Usage: #{$0} [global options] [operation] [operation options]
|
||||||
|
|
||||||
Global 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
|
--version Show rscons version and exit
|
||||||
-h, --help Show rscons help and exit
|
-h, --help Show rscons help and exit
|
||||||
-r COLOR, --color=COLOR Set color mode (off, auto, force)
|
-r COLOR, --color=COLOR Set color mode (off, auto, force)
|
||||||
|
@ -284,7 +284,7 @@ module Rscons
|
|||||||
unless @process_failures.empty?
|
unless @process_failures.empty?
|
||||||
msg = @process_failures.join("\n")
|
msg = @process_failures.join("\n")
|
||||||
if Cache.instance["failed_commands"].size > 0
|
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
|
end
|
||||||
raise BuildError.new(msg)
|
raise BuildError.new(msg)
|
||||||
end
|
end
|
||||||
|
@ -998,7 +998,7 @@ EOF
|
|||||||
|
|
||||||
result = run_rscons
|
result = run_rscons
|
||||||
expect(result.stderr).to match /Failed to build/
|
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
|
expect(result.status).to_not eq 0
|
||||||
|
|
||||||
result = run_rscons(rscons_args: %w[-F])
|
result = run_rscons(rscons_args: %w[-F])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user