diff options
| Commit | 7cba8960f15a648253cfe133bf849f9cd4680df8 (patch) | |
|---|---|---|
| Author | 2022-07-17 20:31:42 +0300 | |
| Committer | 2022-07-17 20:31:42 +0300 | |
| Files | ccb70bcb2d4c2e05cc812486cc430e97eed1d087 /badwolf.c | |
| goodwolf-7cba8960f15a648253cfe133bf849f9cd4680df8.tar goodwolf-7cba8960f15a648253cfe133bf849f9cd4680df8.tar.gz goodwolf-7cba8960f15a648253cfe133bf849f9cd4680df8.zip | ||
| Parent | 6f1065e53ef3a771134cf7fe82b49b910f5ad287 (diff) | |
badwolf: Added a help message
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | badwolf.c | 18 |
@@ -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, ""); |