From 4a1484330d90264b3812acb777c1405ec621f566 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 13 Mar 2012 12:32:30 +0000 Subject: [PATCH] --version should output to stdout, not stderr --- thin_check.cc | 3 ++- thin_dump.cc | 3 ++- thin_restore.cc | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/thin_check.cc b/thin_check.cc index fdc09d6..c3408b4 100644 --- a/thin_check.cc +++ b/thin_check.cc @@ -80,8 +80,9 @@ int main(int argc, char **argv) break; case 'V': - cerr << THIN_PROVISIONING_TOOLS_VERSION << endl; + cout << THIN_PROVISIONING_TOOLS_VERSION << endl; return 0; + default: usage(basename(argv[0])); return 1; diff --git a/thin_dump.cc b/thin_dump.cc index 3189178..68f6a2c 100644 --- a/thin_dump.cc +++ b/thin_dump.cc @@ -93,8 +93,9 @@ int main(int argc, char **argv) break; case 'V': - cerr << THIN_PROVISIONING_TOOLS_VERSION << endl; + cout << THIN_PROVISIONING_TOOLS_VERSION << endl; return 0; + default: usage(basename(argv[0])); return 1; diff --git a/thin_restore.cc b/thin_restore.cc index a3ce23b..4086910 100644 --- a/thin_restore.cc +++ b/thin_restore.cc @@ -81,15 +81,19 @@ int main(int argc, char **argv) case 'h': usage(basename(argv[0])); return 0; + case 'i': input = optarg; break; + case 'o': output = optarg; break; + case 'V': - cerr << THIN_PROVISIONING_TOOLS_VERSION << endl; + cout << THIN_PROVISIONING_TOOLS_VERSION << endl; return 0; + default: usage(basename(argv[0])); return 1;