chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c717761
)
otter cli: anyhow::Error for ArgumentParseError without spurious \n
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 7 Jun 2021 00:15:17 +0000
(
01:15
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 7 Jun 2021 00:16:01 +0000
(
01:16
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cli/clisupport.rs
patch
|
blob
|
history
diff --git
a/cli/clisupport.rs
b/cli/clisupport.rs
index 705362b90398062971e33271623cac2e72f07cca..b0ec1ee1047ee53df1bd43f9a2a309fe57716d6e 100644
(file)
--- a/
cli/clisupport.rs
+++ b/
cli/clisupport.rs
@@
-42,7
+42,7
@@
pub struct ArgumentParseError(pub String);
impl From<&anyhow::Error> for ArgumentParseError {
fn from(ae: &anyhow::Error) -> ArgumentParseError {
- eprintln!("otter: error during argument parsing/startup: {}
\n
", ae.d());
+ eprintln!("otter: error during argument parsing/startup: {}", ae.d());
exit(EXIT_USAGE);
}
}