Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
1 files changed, 18 insertions, 0 deletions
-rw-r--r--badwolf.c18
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, "");