add weak git integration
This commit is contained in:
10
main.c
10
main.c
@@ -17,6 +17,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "edef.h"
|
||||
#include "proj.h"
|
||||
@@ -28,8 +32,8 @@ void usage(int status) {
|
||||
printf("Usage: %s filename\n", PROGRAM_NAME);
|
||||
printf(" or: %s [options]\n\n", PROGRAM_NAME);
|
||||
fputs(" -s enable shell creation mode\n", stdout);
|
||||
fputs(" -S enable shell creation mode as a full project\n",
|
||||
stdout);
|
||||
fputs(" -S enable shell creation mode as a full project\n", stdout);
|
||||
fputs(" --git initialize a git repository\n", stdout);
|
||||
fputs(" --help display this help and exit\n", stdout);
|
||||
fputs(" --version output version information and exit\n", stdout);
|
||||
|
||||
@@ -59,6 +63,8 @@ int main(int argc, char **argv) {
|
||||
shell_mode = SINGLE;
|
||||
else if (argv[carg][1] == 'S')
|
||||
shell_mode = FULL;
|
||||
else if (strcmp(argv[carg], "--git"))
|
||||
git = 1;
|
||||
else
|
||||
die("unknown option");
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user