summaryrefslogtreecommitdiffhomepage
path: root/src/driver/pe_driver_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/pe_driver_ctx.c')
-rw-r--r--src/driver/pe_driver_ctx.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index 5e2f8ee..279527d 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -191,6 +191,7 @@ static int pe_cctx_update(
const char * cmdarg)
{
struct argv_entry * entry;
+ struct argv_entry * fmtarg;
const char * pretty;
pretty = 0;
@@ -221,6 +222,10 @@ static int pe_cctx_update(
cctx->drvflags |= PERK_DRIVER_VERSION;
break;
+ case TAG_YAML:
+ fmtarg = entry;
+ break;
+
case TAG_PRETTY:
pretty = entry->arg;
break;
@@ -327,6 +332,9 @@ static int pe_cctx_update(
} else if (pretty && !strcmp(pretty,"dlltool")) {
cctx->fmtflags |= PERK_PRETTY_DLLTOOL;
+
+ } else if (fmtarg && (fmtarg->tag == TAG_YAML)) {
+ cctx->fmtflags |= PERK_PRETTY_YAML;
}
return 0;