mirror of
https://github.com/clap-rs/clap
synced 2024-11-14 16:47:21 +00:00
commit
41bd23300d
3 changed files with 14 additions and 3 deletions
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,3 +1,14 @@
|
|||
<a name="v1.5.3"></a>
|
||||
### v1.5.3 (2015-11-20)
|
||||
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
* **Errors:** fixes some instances when errors are missing a final newline ([c4d2b171](https://github.com/kbknapp/clap-rs/commit/c4d2b1711994479ad64ee52b6b49d2ceccbf2118))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="v1.5.2"></a>
|
||||
### v1.5.2 (2015-11-14)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
|
||||
name = "clap"
|
||||
version = "1.5.2"
|
||||
version = "1.5.3"
|
||||
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
||||
exclude = ["examples/*", "clap-tests/*", "tests/*", "benches/*", "*.png", "clap-perf/*"]
|
||||
description = "A simple to use, efficient, and full featured Command Line Argument Parser"
|
||||
|
|
|
@ -572,7 +572,7 @@ impl ClapError {
|
|||
/// Prints the error to `stderr` and exits with a status of `1`
|
||||
pub fn exit(&self) -> ! {
|
||||
if self.use_stderr() {
|
||||
werr!("{}", self.error);
|
||||
wlnerr!("{}", self.error);
|
||||
process::exit(1);
|
||||
}
|
||||
let out = io::stdout();
|
||||
|
@ -595,7 +595,7 @@ impl Error for ClapError {
|
|||
|
||||
impl std_fmt::Display for ClapError {
|
||||
fn fmt(&self, f: &mut std_fmt::Formatter) -> std_fmt::Result {
|
||||
write!(f, "{}", self.error)
|
||||
writeln!(f, "{}", self.error)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue