mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-30 16:35:16 +08:00
Improve fish_indent -w error output
Show small usage blurb, add newline to end.
This commit is contained in:
parent
02375982df
commit
0310d3bd8c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user