diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/mdso_driver_ctx.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |