[polari] app: Expose --debugger option in --help
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] app: Expose --debugger option in --help
- Date: Wed, 25 Jul 2018 04:57:26 +0000 (UTC)
commit a86372a5d4d95753a054d51e9c77b98834af0ff6
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 13 00:27:14 2018 +0200
app: Expose --debugger option in --help
The actual option handling needs to happen before handling control
over to JS, but we still want the option to show up in --help output,
so include it in the "regular" option handling as well.
https://gitlab.gnome.org/GNOME/polari/merge_requests/49
src/application.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/application.js b/src/application.js
index 5564fea..62806d7 100644
--- a/src/application.js
+++ b/src/application.js
@@ -45,6 +45,11 @@ var Application = GObject.registerClass({
this.add_main_option('start-client', 0,
GLib.OptionFlags.NONE, GLib.OptionArg.NONE,
_("Start Telepathy client"), null);
+ // Only included for --help output, the actual option is handled
+ // from C before handling over control to JS
+ this.add_main_option('debugger', 'd',
+ GLib.OptionFlags.NONE, GLib.OptionArg.NONE,
+ _("Start in debug mode"), null);
this.add_main_option('test-instance', 0,
GLib.OptionFlags.NONE, GLib.OptionArg.NONE,
_("Allow running alongside another instance"), null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]