File src/vifmrc-converter.c changed (mode: 100644) (index 48f4493e8..9610a4cd1) |
... |
... |
static struct |
221 |
221 |
.count = 0, |
.count = 0, |
222 |
222 |
}; |
}; |
223 |
223 |
|
|
|
224 |
|
/* Help message. */ |
|
225 |
|
static const char *const USAGE = |
|
226 |
|
"Usage: vifmrc-converter 0|1|2|3 [vifmrc_file vifminfo_file]\n\n" |
|
227 |
|
"1 means comment commands in vifmrc and put more things to vifminfo\n" |
|
228 |
|
"2 means convert colorscheme file only\n" |
|
229 |
|
"3 means rename colorschemes only (add .vifm extension)"; |
|
230 |
|
|
224 |
231 |
#ifdef _WIN32 |
#ifdef _WIN32 |
225 |
232 |
static int is_dir(const char *file); |
static int is_dir(const char *file); |
226 |
233 |
#endif |
#endif |
|
... |
... |
main(int argc, char **argv) |
514 |
521 |
|
|
515 |
522 |
if(argc != 2 && argc != 4) |
if(argc != 2 && argc != 4) |
516 |
523 |
{ |
{ |
517 |
|
puts("Usage: vifmrc-converter 0|1|2 [vifmrc_file vifminfo_file]\n\n" |
|
518 |
|
"1 means comment commands in vifmrc and put more things to vifminfo\n" |
|
519 |
|
"2 means convert colorscheme file only"); |
|
|
524 |
|
puts(USAGE); |
520 |
525 |
return 1; |
return 1; |
521 |
526 |
} |
} |
522 |
527 |
if(argv[1][1] != '\0' || (argv[1][0] != '0' && argv[1][0] != '1' && |
if(argv[1][1] != '\0' || (argv[1][0] != '0' && argv[1][0] != '1' && |
523 |
528 |
argv[1][0] != '2' && argv[1][0] != '3')) |
argv[1][0] != '2' && argv[1][0] != '3')) |
524 |
529 |
{ |
{ |
525 |
|
puts("Usage: vifmrc-converter 0|1|2|3 [vifmrc_file vifminfo_file]\n\n" |
|
526 |
|
"1 means comment commands in vifmrc and put more things to vifminfo\n" |
|
527 |
|
"2 means convert colorscheme file only\n" |
|
528 |
|
"3 means convert colorscheme file only"); |
|
|
530 |
|
puts(USAGE); |
529 |
531 |
return 1; |
return 1; |
530 |
532 |
} |
} |
531 |
533 |
|
|