From 57f0fbfe5e6b2fc8d516f147f1e39dc8a8d94062 Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 11 2016 05:22:31 +0000 Subject: driver: show usage information if no other action needs to be taken. --- 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;