separate -m mode and -c
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 14 Sep 2005 23:51:28 +0000 (23:51 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 14 Sep 2005 23:51:28 +0000 (23:51 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1191 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttctl/lttctl.c

index 9845c5c600c81e5a7136550235b0e5697f99c098..0e6cefd718230b9320a11375889779993122a9b7 100644 (file)
@@ -62,7 +62,8 @@ void show_arguments(void)
        printf("Please use the following arguments :\n");
        printf("\n");
        printf("-n name       Name of the trace.\n");
-       printf("-c mode       Create trace channels in mode normal or flight recorder.\n");
+       printf("-c            Create trace channels.\n");
+       printf("-m mode       Normal or flight recorder mode.\n");
        printf("              Mode values : normal (default) or flight.\n");
        printf("-r            Destroy trace channels.\n");
        printf("-s            Start tracing.\n");
@@ -117,6 +118,8 @@ int parse_arguments(int argc, char **argv)
                                                break;
                                        case 'c':
                                                op = CTL_OP_CREATE;
+            break;
+                                       case 'm':
                                                if(argn+1 < argc) {
                                                        mode_name = argv[argn+1];
                                                        argn++;
@@ -130,7 +133,7 @@ int parse_arguments(int argc, char **argv)
                                                                ret = -1;
                                                        }
                                                } else {
-                                                               printf("Specify a mode after -c.\n");
+                                                               printf("Specify a mode after -m.\n");
                                                                printf("\n");
                                                                ret = -1;
                                                }
This page took 0.024626 seconds and 4 git commands to generate.