cmd: add flags argument to create syntax function
[openafs.git] / src / cmd / test / itest.c
index bb0eaf6..e7fb694 100644 (file)
@@ -56,9 +56,9 @@ main(int argc, char **argv)
 
     initialize_CMD_error_table();
 
-    ts = cmd_CreateSyntax("apple", cproc1, NULL, "describe apple");
+    ts = cmd_CreateSyntax("apple", cproc1, NULL, 0, "describe apple");
 
-    ts = cmd_CreateSyntax("pear", cproc2, NULL, "describe pear");
+    ts = cmd_CreateSyntax("pear", cproc2, NULL, 0, "describe pear");
     cmd_AddParm(ts, "-num", CMD_LIST, 0, "number of pears");
     cmd_AddParm(ts, "-noauth", CMD_FLAG, CMD_OPTIONAL, "don't authenticate");
     cmd_AddParm(ts, "-spotpos", CMD_LIST, CMD_OPTIONAL | CMD_EXPANDS, 0);
@@ -66,7 +66,7 @@ main(int argc, char **argv)
     cmd_AddParm(ts, "-cell", CMD_SINGLE, CMD_OPTIONAL, "cell name");
     cmd_CreateAlias(ts, "alias");
 
-    ts = cmd_CreateSyntax("quit", cproc3, 0, "quit");
+    ts = cmd_CreateSyntax("quit", cproc3, 0, 0, "quit");
 
     while (1) {
        printf("> ");