Mercurial > geeqie
diff src/main.c @ 652:9bcfd6d7a902
Display a message when invalid remote options are used.
author | zas_ |
---|---|
date | Tue, 13 May 2008 14:49:38 +0000 |
parents | 3097880d7d95 |
children | e06947d07086 |
line wrap: on
line diff
--- a/src/main.c Tue May 13 14:35:51 2008 +0000 +++ b/src/main.c Tue May 13 14:49:38 2008 +0000 @@ -232,6 +232,7 @@ { GList *list = NULL; GList *remote_list = NULL; + GList *remote_errors = NULL; gint remote_do = FALSE; gchar *first_dir = NULL; @@ -307,7 +308,7 @@ if (!remote_do) { remote_do = TRUE; - remote_list = remote_build_list(remote_list, argc, argv); + remote_list = remote_build_list(remote_list, argc - i, &argv[i], &remote_errors); } } else if (strcmp(cmd_line, "-rh") == 0 || @@ -386,6 +387,22 @@ if (remote_do) { + if (remote_errors) + { + GList *work = remote_errors; + + printf_term(_("Invalid or ignored remote options: ")); + while (work) + { + gchar *opt = work->data; + + printf_term("%s%s", (work == remote_errors) ? "" : ", ", opt); + work = work->next; + } + + printf_term(_("\nUse --remote-help for valid remote options.\n")); + } + remote_control(argv[0], remote_list, *path, list, *collection_list); } g_list_free(remote_list);