@@ -77,28 +77,28 @@ cib_t *the_cib = NULL;
77
77
gboolean force_flag = FALSE;
78
78
79
79
static struct crm_option long_options [] = {
80
- {"help" , 0 , 0 , '?' , "This text" },
81
- {"version" , 0 , 0 , '$' , "Version information" },
82
- {"verbose" , 0 , 0 , 'V' , "Increase debug output\n" },
80
+ {"help" , 0 , 0 , '?' , "\tThis text" },
81
+ {"version" , 0 , 0 , '$' , "\tVersion information" },
82
+ {"verbose" , 0 , 0 , 'V' , "\tIncrease debug output\n" },
83
83
84
84
{"-spacer-" , 0 , 0 , '-' , "Commands:" },
85
85
{"upgrade" , 0 , 0 , 'u' , "\tUpgrade the configuration to the latest syntax" },
86
86
{"query" , 0 , 0 , 'Q' , "\tQuery the contents of the CIB" },
87
87
{"erase" , 0 , 0 , 'E' , "\tErase the contents of the whole CIB" },
88
+ {"bump" , 0 , 0 , 'B' , "\tIncrease the CIB's epoch value by 1" },
88
89
{"create" , 0 , 0 , 'C' , "\tCreate an object in the CIB. Will fail if the object already exists." },
89
90
{"modify" , 0 , 0 , 'M' , "\tFind the object somewhere in the CIB's XML tree and update it. Fails if the object does not exist unless -c is specified" },
91
+ {"patch" , 0 , 0 , 'P' , "\tSupply an update in the form of an xml diff (See also: crm_diff)" },
90
92
{"replace" , 0 , 0 , 'R' , "\tRecursivly replace an object in the CIB" },
91
93
{"delete" , 0 , 0 , 'D' , "\tDelete the first object matching the supplied criteria, Eg. <op id=\"rsc1_op1\" name=\"monitor\"/>" },
92
- {"-spacer-" , 0 , 0 , '-' , "\t\t\tThe tagname and all attributes must match in order for the element to be deleted" },
94
+ {"-spacer-" , 0 , 0 , '-' , "\n\ t\t\tThe tagname and all attributes must match in order for the element to be deleted" },
93
95
{"md5-sum" , 0 , 0 , '5' , "\tCalculate a CIB digest" },
94
- {"patch" , 0 , 0 , 'P' , "\tSupply an update in the form of an xml diff (as produced by crm_diff)" },
95
- {"bump" , 0 , 0 , 'B' , "\tIncrease the CIB's epoch value by 1" },
96
- {"sync" , 0 , 0 , 'S' , "\tForce a refresh of the CIB to all nodes\n" },
96
+ {"sync" , 0 , 0 , 'S' , "\t(Advanced) Force a refresh of the CIB to all nodes\n" },
97
97
{"make-slave" , 0 , 0 , 'r' , NULL , 1 },
98
98
{"make-master" , 0 , 0 , 'w' , NULL , 1 },
99
99
{"is-master" , 0 , 0 , 'm' , NULL , 1 },
100
100
101
- {"-spacer-" , 0 , 0 , '-' , "Command Modifiers :" },
101
+ {"-spacer-" ,1 , 0 , '-' , "\nAdditional options :" },
102
102
{"force" , 0 , 0 , 'f' },
103
103
{"timeout" , 1 , 0 , 't' , "Time (in seconds) to wait before declaring the operation failed" },
104
104
{"sync-call" , 0 , 0 , 's' , "Wait for call to complete before returning" },
@@ -107,15 +107,15 @@ static struct crm_option long_options[] = {
107
107
{"no-children" , 0 , 0 , 'n' , "(Advanced) When querying an object, do not return include its children in the result\n" },
108
108
{"no-bcast" , 0 , 0 , 'b' , NULL , 1 },
109
109
110
- {"-spacer-" , 0 , 0 , '-' , "Command Data:" },
110
+ {"-spacer-" , 0 , 0 , '-' , "Data:" },
111
111
{"xml-text" , 1 , 0 , 'X' , "Retrieve XML from the supplied string" },
112
112
{"xml-file" , 1 , 0 , 'x' , "Retrieve XML from the named file" },
113
113
{"xml-pipe" , 0 , 0 , 'p' , "Retrieve XML from stdin\n" },
114
114
115
115
{"xpath" , 1 , 0 , 'A' , "A valid XPath to use instead of -o" },
116
116
{"obj_type" , 1 , 0 , 'o' , "Limit the scope of the operation to a specific section of the CIB." },
117
117
{"-spacer-" , 0 , 0 , '-' , "\t\t\tValid values are: nodes, resources, constraints, crm_config, rsc_defaults, op_defaults, status" },
118
- {"node" , 1 , 0 , 'N' , "\t (Advanced) Send command to the specified host\n" },
118
+ {"node" , 1 , 0 , 'N' , "(Advanced) Send command to the specified host\n" },
119
119
120
120
{"-spacer-" , 0 , 0 , '-' , "\nExamples:\n" },
121
121
{"-spacer-" , 0 , 0 , '-' , "cibadmin --query --local\t\t\t\tQuery the configuration from the local node\n" },
@@ -156,7 +156,7 @@ main(int argc, char **argv)
156
156
157
157
int option_index = 0 ;
158
158
crm_log_init ("cibadmin" , LOG_CRIT , FALSE, FALSE, argc , argv );
159
- crm_set_options ("V?$o:QDUCEX:t:Srwlsh:MmBfbRx:pP5N:A:unc" , "command [modifiers ] [data]" , long_options ,
159
+ crm_set_options ("V?$o:QDUCEX:t:Srwlsh:MmBfbRx:pP5N:A:unc" , "command [options ] [data]" , long_options ,
160
160
"Provides direct access to the cluster configuration."
161
161
"\n\n Allows the configuration, or sections of it, to be queried, modified, replaced and deleted."
162
162
"\n\n Where necessary, XML data will be obtained using -X, -x, or -p options\n" );
0 commit comments