Fix #684: incompatible pointer types passing struct sockaddr_un
[geeqie.git] / src / main.c
index 0e4815a..7ae3f99 100644 (file)
 #include <X11/Xlib.h>
 #endif
 
-/**
- * @page diagrams Diagrams
- * @section options_overview Options Overview
- * 
- * #_ConfOptions  #_LayoutOptions
- * 
- * @startuml
- * 
- * object options.h
- * object typedefs.h
- * 
- * options.h : ConfOptions
- * options.h : \n
- * options.h : Options applicable to **all** Layout Windows
- * options.h : These are in the <global> section of geeqierc.xml
- * options.h : Available to all modules via the global variable **options**
- * typedefs.h : LayoutOptions
- * typedefs.h : \n
- * typedefs.h : Options applicable to **each** Layout Window
- * typedefs.h : These are in the <layout> section of geeqierc.xml
- * typedefs.h : There is one <layout> section for each Layout Window displayed
- * typedefs.h : Available via **<layout_window>->options**
- * 
- * @enduml
- */
-
-/**
- * @page diagrams Diagrams
- * @section options_diagrams_main Options - New Window From Main
- * #main  
- * #init_options  
- * #layout_new_from_default  
- * #load_config_from_file  
- * #load_options  
- * #setup_default_options
- * 
- * @startuml
- * group main.c
- * start
- * group options.c
- * : **init_options()**
- * 
- * Set **options** = ConfOptions from hard-coded init values;
- * end group
- * 
- * group options.c
- * : **setup_default_options()**
- * 
- * set hard-coded ConfOptions:
- * 
- * bookmarks:
- * * dot dir
- * * Home
- * * Desktop
- * * Collections
- * safe delete path
- * OSD template string
- * sidecar extensions
- * shell path and options
- * marks tooltips
- * help search engine;
- * end group
- * 
- * if (first entry
- * or
- * --new-instance) then (yes)
- * group options.c
- * : **load_options()**
- * ;
- * 
- * split
- * : GQ_SYSTEM_WIDE_DIR
- * /geeqierc.xml;
- * split again
- * : XDG_CONFIG_HOME
- * /geeqierc.xml;
- * split again
- * : HOME
- * /.geeqie/geeqierc.xml;
- * end split
- * 
- * group rcfile.c
- * : **load_config_from_file()**
- * 
- * set  **options** from file
- * and all <layout window>->options  in file;
- * end group
- * 
- * end group
- * 
- * if (broken config. file
- * or no config file
- * or no layout section loaded
- * (i.e. session not saved)) then (yes)
- * group layout.c
- * : **layout_new_from_default()**;
- * if (default.xml exists) then (yes)
- * : Load user-saved
- *  layout_window default options
- *  from default.xml file;
- * else (no)
- * : Load hard-coded
- *  layout_window default options;
- * endif
- * end group
- * endif
- * 
- * else (no)
- * : Send --new-window request to remote
- *  No return to this point
- *  This instance terminates;
- * stop
- * endif
- * 
- * : Enter gtk main loop;
- * 
- * end group
- * @enduml
- */
-
-/**
- * @page diagrams Diagrams
- * @section options_diagrams_remote Options - New Window From Remote
- * #layout_new_from_default  
- * @startuml
- * 
- * group remote.c
- * start
- * group layout.c
- * : **layout_new_from_default()**;
- * if (default.xml exists) then (yes)
- * : Load user-saved
- *  layout_window default options
- *  from default.xml file;
- * else (no)
- * : Load hard-coded
- *  layout_window default options;
- * endif
- * end group
- * : set path from PWD;
- * @enduml
- */
-
-/**
- * @page diagrams Diagrams
- * @section options_diagrams_menu Options - New Window From Menu
- * #layout_menu_new_window_cb  
- * #layout_menu_window_from_current_cb  
- * #layout_new_from_default  
- * @startuml
- * 
- * group layout_util.c
- * start
- * 
- * split
- * : default;
- * group layout.c
- * : **layout_new_from_default()**;
- * if (default.xml exists) then (yes)
- * : Load user-saved
- *  layout_window default options
- *  from default.xml file;
- * else (no)
- * : Load hard-coded
- *  layout_window default options;
- * endif
- * end group
- * 
- * split again
- * : from current
- * 
- * **layout_menu_window_from_current_cb()**
- * copy layout_window options
- * from current window;
- * 
- * split again
- * : named
- * 
- * **layout_menu_new_window_cb()**
- * load layout_window options
- * from saved xml file list;
- * end split
- * 
- * end group
- * @enduml
- */
-  /**
-  * @file
-  * @ref options_overview Options Overview
-  */
-
-
 gboolean thumb_format_changed = FALSE;
 static RemoteConnection *remote_connection = NULL;
 
@@ -591,33 +399,36 @@ static void parse_command_line(gint argc, gchar *argv[])
                                {
                                printf_term(FALSE, "%s %s\n", GQ_APPNAME, VERSION);
                                printf_term(FALSE, _("Usage: %s [options] [path]\n\n"), GQ_APPNAME_LC);
-                               print_term(FALSE, _("valid options are:\n"));
-                               print_term(FALSE, _("  +t, --with-tools                 force show of tools\n"));
-                               print_term(FALSE, _("  -t, --without-tools              force hide of tools\n"));
+                               print_term(FALSE, _("Valid options:\n"));
+                               print_term(FALSE, _("      --blank                      start with blank file list\n"));
+                               print_term(FALSE, _("      --cache-maintenance <path>   run cache maintenance in non-GUI mode\n"));
+                               print_term(FALSE, _("      --disable-clutter            disable use of Clutter library (i.e. GPU accel.)\n"));
                                print_term(FALSE, _("  -f, --fullscreen                 start in full screen mode\n"));
-                               print_term(FALSE, _("  -s, --slideshow                  start in slideshow mode\n"));
+                               print_term(FALSE, _("      --geometry=WxH+XOFF+YOFF     set main window location\n"));
+                               print_term(FALSE, _("  -h, --help                       show this message\n"));
                                print_term(FALSE, _("  -l, --list [files] [collections] open collection window for command line\n"));
-                               print_term(FALSE, _("      --blank                      start with blank file list\n"));
-                               print_term(FALSE, _("      --geometry=XxY+XOFF+YOFF     set main window location\n"));
                                print_term(FALSE, _("  -n, --new-instance               open a new instance of Geeqie\n"));
+                               print_term(FALSE, _("  -o:, --log-file:<file>     save log data to file\n"));
                                print_term(FALSE, _("  -r, --remote                     send following commands to open window\n"));
-                               print_term(FALSE, _("  -rh,--remote-help                print remote command list\n"));
+                               print_term(FALSE, _("  -rh, --remote-help               print remote command list\n"));
+                               print_term(FALSE, _("  -s, --slideshow                  start in slideshow mode\n"));
+                               print_term(FALSE, _("  +t, --with-tools                 force show of tools\n"));
+                               print_term(FALSE, _("  -t, --without-tools              force hide of tools\n"));
+                               print_term(FALSE, _("  -v, --version                    print version info\n"));
+                               print_term(FALSE, _("  +w, --show-log-window            show log window\n"));
 #ifdef DEBUG
                                print_term(FALSE, _("      --debug[=level]              turn on debug output\n"));
-                               print_term(FALSE, _("  -g:<regexp>, --grep:<regexp>     filter debug output\n"));
+                               print_term(FALSE, _("  -g:, --grep:<regexp>     filter debug output\n"));
 #endif
-                               print_term(FALSE, _("  +w, --show-log-window            show log window\n"));
-                               print_term(FALSE, _("  -o:<file>, --log-file:<file>     save log data to file\n"));
-                               print_term(FALSE, _("  -v, --version                    print version info\n"));
-                               print_term(FALSE, _("  -h, --help                       show this message\n"));
-                               print_term(FALSE, _("      --disable-clutter            disable use of Clutter library (i.e. GPU accel.)\n"));
-                               print_term(FALSE, _("      --cache-maintenance <path>   run cache maintenance in non-GUI mode\n\n"));
 
 #if 0
                                /* these options are not officially supported!
                                 * only for testing new features, no need to translate them */
                                print_term(FALSE, "  --alternate                use alternate similarity algorithm\n");
 #endif
+                               print_term(FALSE, "\n");
+
+                               remote_help();
 
 
                                exit(0);