113
116
"Run mir in standalone mode. [bool:default=false]")
114
117
(host_socket_opt, po::value<std::string>(),
115
118
"Host socket filename. [string:default={$MIR_SOCKET,$XDG_RUNTIME_DIR/mir_socket}]")
116
("file,f", po::value<std::string>(),
117
"Socket filename. [string:default=$XDG_RUNTIME_DIR/mir_socket]")
119
(server_socket_opt, po::value<std::string>()->default_value(::mir::default_server_socket),
118
121
(no_server_socket_opt, "Do not provide a socket filename for client connections")
119
(platform_graphics_lib, po::value<std::string>(),
120
"Library to use for platform graphics support [default=libmirplatformgraphics.so]")
121
("enable-input,i", po::value<bool>(),
122
"Enable input. [bool:default=true]")
123
(connector_report_opt, po::value<std::string>(),
124
"How to handle the Connector report. [{log,off}:default=off]")
125
(display_report_opt, po::value<std::string>(),
126
"How to handle the Display report. [{log,off}:default=off]")
127
(input_report_opt, po::value<std::string>(),
128
"How to handle to Input report. [{log,lttng,off}:default=off]")
129
(legacy_input_report_opt, po::value<std::string>(),
130
"How to handle the Legacy Input report. [{log,off}:default=off]")
131
(session_mediator_report_opt, po::value<std::string>(),
132
"How to handle the SessionMediator report. [{log,off}:default=off]")
133
(msg_processor_report_opt, po::value<std::string>(),
134
"How to handle the MessageProcessor report. [{log,lttng,off}:default=off]")
135
(scene_report_opt, po::value<std::string>(),
136
"How to handle the scene report. [{log,off}:default=off]")
122
(platform_graphics_lib, po::value<std::string>()->default_value(default_platform_graphics_lib),
123
"Library to use for platform graphics support")
124
(enable_input_opt, po::value<bool>()->default_value(enable_input_default),
126
(compositor_report_opt, po::value<std::string>()->default_value(off_opt_value),
127
"Compositor reporting [{log,off}]")
128
(connector_report_opt, po::value<std::string>()->default_value(off_opt_value),
129
"How to handle the Connector report. [{log,off}]")
130
(display_report_opt, po::value<std::string>()->default_value(off_opt_value),
131
"How to handle the Display report. [{log,off}]")
132
(input_report_opt, po::value<std::string>()->default_value(off_opt_value),
133
"How to handle to Input report. [{log,lttng,off}]")
134
(legacy_input_report_opt, po::value<std::string>()->default_value(off_opt_value),
135
"How to handle the Legacy Input report. [{log,off}]")
136
(session_mediator_report_opt, po::value<std::string>()->default_value(off_opt_value),
137
"How to handle the SessionMediator report. [{log,off}]")
138
(msg_processor_report_opt, po::value<std::string>()->default_value(off_opt_value),
139
"How to handle the MessageProcessor report. [{log,lttng,off}]")
140
(scene_report_opt, po::value<std::string>()->default_value(off_opt_value),
141
"How to handle the scene report. [{log,off}]")
138
143
"Use google::GLog for logging")
139
(glog_stderrthreshold, po::value<int>(),
144
(glog_stderrthreshold, po::value<int>()->default_value(glog_stderrthreshold_default),
140
145
"Copy log messages at or above this level "
141
146
"to stderr in addition to logfiles. The numbers "
142
147
"of severity levels INFO, WARNING, ERROR, and "
143
"FATAL are 0, 1, 2, and 3, respectively."
145
(glog_minloglevel, po::value<int>(),
148
"FATAL are 0, 1, 2, and 3, respectively.")
149
(glog_minloglevel, po::value<int>()->default_value(glog_minloglevel_default),
146
150
"Log messages at or above this level. The numbers "
147
151
"of severity levels INFO, WARNING, ERROR, and "
148
152
"FATAL are 0, 1, 2, and 3, respectively."
149
153
" [int:default=0]")
150
(glog_log_dir, po::value<std::string>(),
154
(glog_log_dir, po::value<std::string>()->default_value(glog_log_dir_default),
151
155
"If specified, logfiles are written into this "
152
"directory instead of the default logging directory."
153
" [string:default=\"\"]")
154
("ipc-thread-pool", po::value<int>(),
156
"directory instead of the default logging directory.")
157
(frontend_threads_opt, po::value<int>()->default_value(default_ipc_threads),
155
158
"threads in frontend thread pool.")
156
159
(name_opt, po::value<std::string>(),
157
160
"When nested, the name Mir uses when registering with the host.")
159
162
"Render to offscreen buffers instead of the real outputs.")
160
("vt", po::value<int>(),
161
"VT to run on or 0 to use current. [int:default=0]");
163
("vt", po::value<int>()->default_value(0), // TODO this not applicable on all graphics platforms
164
"VT to run on or 0 to use current.");
164
167
boost::program_options::options_description_easy_init mir::DefaultConfigurationOptions::add_options()