Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Fix exit status in help/README
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Corona <ac@albertocorona.com>
  • Loading branch information
0X1A committed Aug 6, 2016
1 parent 20c9f62 commit 81eb417
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 81eb417

Please sign in to comment.