1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[Config] Skip single element options.

This commit is contained in:
Dave Davenport 2021-12-02 08:47:26 +01:00
parent e3f41474fd
commit 50ac47e24e

View file

@ -539,6 +539,9 @@ void config_parse_cmd_options(void) {
extern char **stored_argv;
for (int in = 1; in < (stored_argc - 1); in++) {
if (stored_argv[in][0] == '-') {
if (stored_argv[in + 1][0] == '-') {
continue;
}
/** TODO: This is a hack, and should be fixed in a nicer way. */
char **tokens = g_strsplit(stored_argv[in], "-", 3);
int count = 1;