File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 20
20
#include < util/exit_codes.h>
21
21
#include < util/invariant.h>
22
22
#include < util/unicode.h>
23
+ #include < util/xml.h>
23
24
#include < util/version.h>
24
25
25
26
#include < langapi/language.h>
@@ -422,6 +423,24 @@ int jbmc_parse_optionst::doit()
422
423
<< " -bit " << config.this_architecture () << " "
423
424
<< config.this_operating_system () << eom;
424
425
426
+ // output the options
427
+ switch (ui_message_handler.get_ui ())
428
+ {
429
+ case ui_message_handlert::uit::PLAIN:
430
+ options.output (debug ());
431
+ break ;
432
+ case ui_message_handlert::uit::JSON_UI:
433
+ {
434
+ json_objectt json_options;
435
+ json_options[" options" ] = options.to_json ();
436
+ debug () << json_options;
437
+ break ;
438
+ }
439
+ case ui_message_handlert::uit::XML_UI:
440
+ debug () << options.to_xml ();
441
+ break ;
442
+ }
443
+
425
444
register_language (new_ansi_c_language);
426
445
register_language (new_java_bytecode_language);
427
446
You can’t perform that action at this time.
0 commit comments