summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ntux_driver_ctx.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/driver/ntux_driver_ctx.c b/src/driver/ntux_driver_ctx.c
index 3759ef7..0398d5f 100644
--- a/src/driver/ntux_driver_ctx.c
+++ b/src/driver/ntux_driver_ctx.c
@@ -69,8 +69,9 @@ static int ntux_driver_usage(
char header[512];
snprintf(header,sizeof(header),
- "Usage: %s [options] <file>...\n" "Options:\n",
- program);
+ "Usage: %s [options] ...\n"
+ "Usage: %s [options] --cmd=<command> <arg> <arg> ...\n" "Options:\n",
+ program,program);
argv_usage(stdout,header,optv,arg);
argv_free(meta);
@@ -164,6 +165,11 @@ int ntux_get_driver_ctx(
case TAG_VERSION:
cctx.drvflags |= NTUX_DRIVER_VERSION;
break;
+
+ case TAG_CMD:
+ if (!strcmp(entry->arg,"stat"))
+ cctx.cmd = NTUX_CMD_STAT;
+ break;
}
} else
nunits++;