Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit7cba8960f15a648253cfe133bf849f9cd4680df8 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-07-17 20:31:42 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-07-17 20:31:42 +0300
Filesccb70bcb2d4c2e05cc812486cc430e97eed1d087
goodwolf-7cba8960f15a648253cfe133bf849f9cd4680df8.tar
goodwolf-7cba8960f15a648253cfe133bf849f9cd4680df8.tar.gz
goodwolf-7cba8960f15a648253cfe133bf849f9cd4680df8.zip
Parent6f1065e53ef3a771134cf7fe82b49b910f5ad287 (diff)
badwolf: Added a help message
2 files changed, 26 insertions, 8 deletions
-rw-r--r--badwolf.c18
-rw-r--r--po/messages.pot16
diff --git a/badwolf.c b/badwolf.c
index 8536534..8aad8b6 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -1152,6 +1152,24 @@ static GtkStatusIcon *create_tray_icon(const struct Window *window) {
int
main(int argc, char *argv[])
{
+ if (argc > 0 && argv[1][0] == '-' && argv[1][1] == 'h') {
+ printf("\
+badwolf [OPTIONS] [URLs]\n\n\
+Options:\n\
+-s DD Specifies a custom favicon size, where DD is a two digit number\n\
+-nl Tabs won't have a label (page title)\n\
+-cl Tabs will have a context label (text that identifies every tab)\n\
+-c You won't be able to add or remove any tabs, other than those specified\n\
+ as parameters\n\
+-t Adds a tray icon. Clicking it toggles visibility of the browser window.\n\
+-u All tabs will use an alternative UserAgent\n\
+-p Persistent storage, meaning non-session cookies will be stored on drive\n\
+-g Separated storage, meaning persistent storage will be done separately for\n\
+ each tab context. Doesn't do anything if the -p option isn't selected.\n"
+ );
+ return 0;
+ }
+
struct Window *window = &(struct Window){NULL, NULL, NULL, NULL, NULL, NULL};
GApplication *application;
setlocale(LC_ALL, "");
diff --git a/po/messages.pot b/po/messages.pot
index 8a035c4..32905ff 100644
--- a/po/messages.pot
+++ b/po/messages.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Badwolf 1.2.0+g6e9679c.develop\n"
"Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n"
-"POT-Creation-Date: 2022-07-17 20:12+0300\n"
+"POT-Creation-Date: 2022-07-17 20:31+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -74,7 +74,7 @@ msgstr ""
msgid "Bookmarks: unable to parse file \"%s\"\n"
msgstr ""
-#: badwolf.c:1172
+#: badwolf.c:1190
#, c-format
msgid "Buildtime WebKit version: %d.%d.%d\n"
msgstr ""
@@ -137,7 +137,7 @@ msgstr ""
msgid "New tab"
msgstr ""
-#: badwolf.c:1242
+#: badwolf.c:1260
msgid "Open new tab"
msgstr ""
@@ -145,12 +145,12 @@ msgstr ""
msgid "Out of Memory"
msgstr ""
-#: badwolf.c:1170
+#: badwolf.c:1188
#, c-format
msgid "Running Badwolf version: %s\n"
msgstr ""
-#: badwolf.c:1177
+#: badwolf.c:1195
#, c-format
msgid "Runtime WebKit version: %d.%d.%d\n"
msgstr ""
@@ -199,7 +199,7 @@ msgstr ""
msgid "badwolf: failed to load content-filter, err: [%d] %s\n"
msgstr ""
-#: badwolf.c:1198
+#: badwolf.c:1216
#, c-format
msgid "content-filters file set to: %s\n"
msgstr ""
@@ -220,12 +220,12 @@ msgstr ""
msgid "the web process terminated for an unknown reason.\n"
msgstr ""
-#: badwolf.c:1184
+#: badwolf.c:1202
#, c-format
msgid "webkit-web-extension directory set to: %s\n"
msgstr ""
#. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext.
-#: badwolf.c:1307
+#: badwolf.c:1325
msgid "ΓΈ"
msgstr ""