From 81eb41776d17dc9737b247f51ff8307e80fb4b98 Mon Sep 17 00:00:00 2001 From: Alberto Corona Date: Sat, 6 Aug 2016 14:23:43 -0500 Subject: [PATCH] Fix exit status in help/README Signed-off-by: Alberto Corona --- README.md | 6 +++--- src/main.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4b4e8b2..881a489 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ Options: -e, --exhaustive Give an exhaustive status of removable OSDs Exit statuses: - 1: Safe to remove an OSD - 2: Not safe to remove an OSD - 3: General error + 0: Safe to remove an OSD + 1: Not safe to remove an OSD + 2: General error ``` diff --git a/src/main.rs b/src/main.rs index 6e5de44..b74fd0a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,9 +15,9 @@ use getopts::Options; fn print_help(opts: Options) { println!("{0}", opts.usage("Usage: ceph-safe-disk [OPTION]")); println!("Exit statuses: - 1: Safe to remove an OSD - 2: Not safe to remove an OSD - 3: General error"); + 0: Safe to remove an OSD + 1: Not safe to remove an OSD + 2: General error"); } fn main() {