From 0310d3bd8c9fdf8483469b9e98a50c3effafb783 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 12 Jun 2016 11:25:38 -0700 Subject: Improve fish_indent -w error output Show small usage blurb, add newline to end. --- src/fish_indent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3