fix warning
This commit is contained in:
@@ -113,5 +113,16 @@ int create_project(manifest_t manifest)
|
||||
abort();
|
||||
}
|
||||
|
||||
if (manifest.libraries.ncurses)
|
||||
system("git submodule add --quiet https://github.com/mirror/ncurses");
|
||||
if (manifest.libraries.raylib)
|
||||
system("git submodule add --quiet https://github.com/raysan5/raylib");
|
||||
if (manifest.libraries.stb)
|
||||
system("git submodule add --quiet https://github.com/nothings/stb");
|
||||
if (manifest.libraries.uthash)
|
||||
system("git submodule add --quiet https://github.com/troydhanson/uthash");
|
||||
if (manifest.libraries.linenoise)
|
||||
system("git submodule add --quiet https://github.com/antirez/linenoise");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
19
src/main.c
19
src/main.c
@@ -84,7 +84,24 @@ static int parse_arguments(manifest_t *conf, int argc, char **argv)
|
||||
conf->licence = TOlicence(optarg);
|
||||
break;
|
||||
case 'l':
|
||||
#warning "Implement -l <lib>"
|
||||
if (strcmp(optarg, "list") == 0) {
|
||||
puts("ncurses\nraylib\nstb\nuthash\nlinenoise");
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
if (strcmp(optarg, "ncurses") == 0)
|
||||
conf->libraries.ncurses = true;
|
||||
else if (strcmp(optarg, "raylib") == 0)
|
||||
conf->libraries.raylib = true;
|
||||
else if (strcmp(optarg, "stb") == 0)
|
||||
conf->libraries.stb = true;
|
||||
else if (strcmp(optarg, "uthash") == 0)
|
||||
conf->libraries.uthash = true;
|
||||
else if (strcmp(optarg, "linenoise") == 0)
|
||||
conf->libraries.linenoise = true;
|
||||
else
|
||||
fprintf(stderr,
|
||||
"warning: %s is not a support library",
|
||||
optarg);
|
||||
break;
|
||||
default:
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user