Преглед изворни кода

quorumtool: change default command from -h to -s

default run will show status instead of help text

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto пре 13 година
родитељ
комит
fff56eca01
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1 6
      tools/corosync-quorumtool.c

+ 1 - 6
tools/corosync-quorumtool.c

@@ -684,12 +684,7 @@ int main (int argc, char *argv[]) {
 	uint32_t nodeid_set = 0;
 	nodeid_format_t nodeid_format = NODEID_FORMAT_DECIMAL;
 	name_format_t address_format = ADDRESS_FORMAT_NAME;
-	command_t command_opt = CMD_UNKNOWN;
-
-	if (argc == 1) {
-		show_usage (argv[0]);
-		exit(0);
-	}
+	command_t command_opt = CMD_SHOWSTATUS;
 
 	if (init_all()) {
 		close_all();