o_single_page= 1;
else if (!strcmp(arg,"--screenshots-file"))
eassert( o_screenshots_fn= *++argv );
+#define DF(f) \
+ else if (!strcmp(arg,"-D" #f)) \
+ debug_flags |= dbg_##f;
+ DEBUG_FLAG_LIST
+#undef DF
else if (!strcmp(arg,"--window-id")) {
char *ep;
eassert((arg=*++argv));