mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-28 05:36:46 +00:00
router: format: add newline at the end
Without this newline running commands with missing arguments, e.g.
```
proxmox-backup-client backup
```
will print their usage string without a newline at the end, which is
costing me my sanity.
As per commit d872eb9d7e
("router: cli: rework newline handling for
doc and help output"), usage shouldn't contain trailing new lines and
this in principle should not print double new lines.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
550ebbed7c
commit
08c28ddeaf
@ -279,7 +279,7 @@ pub(crate) fn print_simple_usage_error_do<'cli>(
|
||||
&[],
|
||||
global_options_iter,
|
||||
);
|
||||
eprint!("Error: {}\nUsage: {}", err_msg, usage);
|
||||
eprintln!("Error: {}\nUsage: {}", err_msg, usage);
|
||||
}
|
||||
|
||||
/// Print command usage for nested commands to ``stderr``.
|
||||
|
Loading…
Reference in New Issue
Block a user