Give a hint when option is unknown
authorRicardo Mones <ricardo@mones.org>
Fri, 4 Jan 2019 19:07:49 +0000 (20:07 +0100)
committerRicardo Mones <ricardo@mones.org>
Fri, 4 Jan 2019 19:07:49 +0000 (20:07 +0100)
src/main.c

index 4e5cd15..069a229 100644 (file)
@@ -2060,7 +2060,7 @@ static void parse_cmd_opt(int argc, char *argv[])
                        } else if (is_dir_exist(argv[i]) || is_file_exist(argv[i])) {
                                cmd.target = argv[i];
                        } else {
-                               g_print(_("Unknown option\n"));
+                               g_print(_("Unknown option. Try -h or --help for usage.\n"));
                                exit(1);
                        }
                }