From 57f0fbfe5e6b2fc8d516f147f1e39dc8a8d94062 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 23 Dec 2015 06:02:16 -0500 Subject: driver: show usage information if no other action needs to be taken. --- src/driver/mdso_driver_ctx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index 61cd77f..1538d95 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -207,6 +207,9 @@ int mdso_get_driver_ctx( nunits++; } + if (!nunits && !(cctx.drvflags & MDSO_DRIVER_VERSION)) + return mdso_driver_usage(program,0,options,meta); + if (pretty && !strcmp(pretty,"yaml")) cctx.fmtflags |= MDSO_PRETTY_YAML; -- cgit v1.2.3