* [pbs-devel] [PATCH proxmox] router: format: add newline at the end
@ 2025-04-14 15:09 Maximiliano Sandoval
2025-04-15 6:00 ` [pbs-devel] applied: " Wolfgang Bumiller
0 siblings, 1 reply; 2+ messages in thread
From: Maximiliano Sandoval @ 2025-04-14 15:09 UTC (permalink / raw)
To: pbs-devel
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 [1], usage shouldn't contain trailing new lines and this in
principle should not print double new lines.
[1] https://git.proxmox.com/?p=proxmox.git;a=commit;h=d872eb9d7ebadbd8fcc9506eb2c5689632fa89bc
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
proxmox-router/src/cli/format.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-router/src/cli/format.rs b/proxmox-router/src/cli/format.rs
index 95448aa9..e8ebe41f 100644
--- a/proxmox-router/src/cli/format.rs
+++ b/proxmox-router/src/cli/format.rs
@@ -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``.
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pbs-devel] applied: [PATCH proxmox] router: format: add newline at the end
2025-04-14 15:09 [pbs-devel] [PATCH proxmox] router: format: add newline at the end Maximiliano Sandoval
@ 2025-04-15 6:00 ` Wolfgang Bumiller
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2025-04-15 6:00 UTC (permalink / raw)
To: Maximiliano Sandoval; +Cc: pbs-devel
applied, but replaced the link with the usual inline commit reference,
since it's in the same repository
On Mon, Apr 14, 2025 at 05:09:29PM +0200, Maximiliano Sandoval wrote:
> 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 [1], usage shouldn't contain trailing new lines and this in
> principle should not print double new lines.
>
> [1] https://git.proxmox.com/?p=proxmox.git;a=commit;h=d872eb9d7ebadbd8fcc9506eb2c5689632fa89bc
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
> ---
> proxmox-router/src/cli/format.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/proxmox-router/src/cli/format.rs b/proxmox-router/src/cli/format.rs
> index 95448aa9..e8ebe41f 100644
> --- a/proxmox-router/src/cli/format.rs
> +++ b/proxmox-router/src/cli/format.rs
> @@ -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``.
> --
> 2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-15 6:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-14 15:09 [pbs-devel] [PATCH proxmox] router: format: add newline at the end Maximiliano Sandoval
2025-04-15 6:00 ` [pbs-devel] applied: " Wolfgang Bumiller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal