]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common: omit short option for id in help for clients
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 19 Feb 2018 16:28:18 +0000 (08:28 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 21 Feb 2018 18:52:51 +0000 (10:52 -0800)
Commit 8e3abf3ce337 removed the short option for clients to conflicts.

Fixes: http://tracker.ceph.com/issues/23041
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/ceph_argparse.cc
src/test/cli/radosgw-admin/help.t

index 7a2e8ea918232d449eb23827b6b4988f188bb960..a89de95f6e405fb2988e8dc8918128efaa02e184 100644 (file)
@@ -521,22 +521,24 @@ CephInitParameters ceph_argparse_early_args
 
 static void generic_usage(bool is_server)
 {
-  cout << "\
-  --conf/-c FILE    read configuration from the given configuration file\n\
-  --id/-i ID        set ID portion of my name\n\
-  --name/-n TYPE.ID set name\n\
-  --cluster NAME    set cluster name (default: ceph)\n\
-  --setuser USER    set uid to user or uid (and gid to user's gid)\n\
-  --setgroup GROUP  set gid to group or gid\n\
-  --version         show version and quit\n\
-" << std::endl;
+  cout <<
+    "  --conf/-c FILE    read configuration from the given configuration file" << std::endl <<
+    (is_server ?
+    "  --id/-i ID        set ID portion of my name" :
+    "  --id ID           set ID portion of my name") << std::endl <<
+    "  --name/-n TYPE.ID set name" << std::endl <<
+    "  --cluster NAME    set cluster name (default: ceph)" << std::endl <<
+    "  --setuser USER    set uid to user or uid (and gid to user's gid)" << std::endl <<
+    "  --setgroup GROUP  set gid to group or gid" << std::endl <<
+    "  --version         show version and quit" << std::endl
+    << std::endl;
 
   if (is_server) {
-    cout << "\
-  -d                run in foreground, log to stderr.\n\
-  -f                run in foreground, log to usual location.\n";
-    cout << "\
-  --debug_ms N      set message debug level (e.g. 1)\n";
+    cout <<
+      "  -d                run in foreground, log to stderr" << std::endl <<
+      "  -f                run in foreground, log to usual location" << std::endl <<
+      std::endl <<
+      "  --debug_ms N      set message debug level (e.g. 1)" << std::endl;
   }
 
   cout.flush();
index 521b02849eb39f9111b0b541a70c10aef3487a51..a7a388e14ea7c738012a6c2bc0ddc1663a31ae14 100644 (file)
      --path-prefix             path prefix for filtering roles
   
     --conf/-c FILE    read configuration from the given configuration file
-    --id/-i ID        set ID portion of my name
+    --id ID           set ID portion of my name
     --name/-n TYPE.ID set name
     --cluster NAME    set cluster name (default: ceph)
     --setuser USER    set uid to user or uid (and gid to user's gid)