[PATCH 6/7] cmap: change -t and -T around (capital == with prefix)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to add a prefic delete option and then these will
not be consistent.

Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx>
---
 tools/corosync-cmapctl.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/corosync-cmapctl.c b/tools/corosync-cmapctl.c
index dbe99ec..69b9bce 100644
--- a/tools/corosync-cmapctl.c
+++ b/tools/corosync-cmapctl.c
@@ -123,11 +123,11 @@ static int print_help(void)
 	printf("Display keys with prefix key_name:\n");
 	printf("    corosync-cmapctl [-b] key_name...\n");
 	printf("\n");
-	printf("Track changes on keys with prefix key_name:\n");
+	printf("Track changes on keys with key_name:\n");
 	printf("    corosync-cmapctl [-b] -t key_name\n");
 	printf("\n");
-	printf("Track changes on keys with key_name name:\n");
-	printf("    corosync-cmapctl [-b] -T key_name\n");
+	printf("Track changes on keys with key prefix:\n");
+	printf("    corosync-cmapctl [-b] -T key_prefix\n");
 	printf("\n");
 
 	return (0);
@@ -731,10 +731,10 @@ int main(int argc, char *argv[])
 			break;
 		case 't':
 			action = ACTION_TRACK;
+			track_prefix = 0;
 			break;
 		case 'T':
 			action = ACTION_TRACK;
-			track_prefix = 0;
 			break;
 		case '?':
 			return (EXIT_FAILURE);
-- 
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux