aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-12 11:25:38 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-12 11:25:38 -0700
commit0310d3bd8c9fdf8483469b9e98a50c3effafb783 (patch)
tree9505f4000a6ef09b8a773c1de8dc19fe77b94421
parent02375982df20e5cd6f27f460b3387b2a0db7d79e (diff)
Improve fish_indent -w error output
Show small usage blurb, add newline to end.
-rw-r--r--src/fish_indent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fish_indent.cpp b/src/fish_indent.cpp
index 9436944a..06a0e0e4 100644
--- a/src/fish_indent.cpp
+++ b/src/fish_indent.cpp
@@ -410,7 +410,8 @@ int main(int argc, char *argv[]) {
wcstring src;
if (argc == 0) {
if (output_type == output_type_file) {
- fwprintf(stderr, _(L"You cannot use -w without providing the path to read from and write to."));
+ fwprintf(stderr, _(L"Expected file path to read/write for -w:\n\n $ %ls -w foo.fish\n"),
+ program_name);
exit(1);
}
src = read_file(stdin);