From 00eb0e297974e67d9e8583c357c2db6b2a707a14 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 19 Sep 2013 13:23:54 -0700 Subject: mon: don't list "--yes-i-really-mean-it" options as required By default options are required, and that leads to the Ceph CLI making users add this to their commands before even submitting it to the monitor. We want them to see and think about the messages generated by the monitor! Signed-off-by: Greg Farnum --- src/mon/MonCommands.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 3f0fd43fd39..02cd77d49ff 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -210,8 +210,8 @@ COMMAND("quorum_status", "report status of monitor quorum", \ "mon", "r", "cli,rest") COMMAND("mon_status", "report status of monitors", "mon", "r", "cli,rest") COMMAND("sync force " \ - "name=validate1,type=CephChoices,strings=--yes-i-really-mean-it " \ - "name=validate2,type=CephChoices,strings=--i-know-what-i-am-doing", \ + "name=validate1,type=CephChoices,strings=--yes-i-really-mean-it,req=false " \ + "name=validate2,type=CephChoices,strings=--i-know-what-i-am-doing,req=false", \ "force sync of and clear monitor store", "mon", "rw", "cli,rest") COMMAND("heap " \ "name=heapcmd,type=CephChoices,strings=dump|start_profiler|stop_profiler|release|stats", \ @@ -287,7 +287,7 @@ COMMAND("mds remove_data_pool " \ COMMAND("mds newfs " \ "name=metadata,type=CephInt,range=0 " \ "name=data,type=CephInt,range=0 " \ - "name=sure,type=CephChoices,strings=--yes-i-really-mean-it", \ + "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \ "make new filesystom using pools and ", \ "mds", "rw", "cli,rest") /* @@ -460,7 +460,7 @@ COMMAND("osd reweight " \ "reweight osd to 0.0 < < 1.0", "osd", "rw", "cli,rest") COMMAND("osd lost " \ "name=id,type=CephInt,range=0 " \ - "name=sure,type=CephChoices,strings=--yes-i-really-mean-it", \ + "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \ "mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL", \ "osd", "rw", "cli,rest") COMMAND("osd create " \ -- cgit v1.2.1