mirror of https://git.kore.io/kore.git
don't forward argc/argv for kodev create.
Means we don't have to do weird shit that doesn't work on !macos anyway.
This commit is contained in:
parent
c257299fa4
commit
296b1693ac
|
@ -420,8 +420,10 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
for (i = 0; cmds[i].name != NULL; i++) {
|
for (i = 0; cmds[i].name != NULL; i++) {
|
||||||
if (!strcmp(argv[0], cmds[i].name)) {
|
if (!strcmp(argv[0], cmds[i].name)) {
|
||||||
argc--;
|
if (strcmp(argv[0], "create")) {
|
||||||
argv++;
|
argc--;
|
||||||
|
argv++;
|
||||||
|
}
|
||||||
command = &cmds[i];
|
command = &cmds[i];
|
||||||
cmds[i].cb(argc, argv);
|
cmds[i].cb(argc, argv);
|
||||||
break;
|
break;
|
||||||
|
@ -464,7 +466,6 @@ cli_create(int argc, char **argv)
|
||||||
int i, ch, pyko;
|
int i, ch, pyko;
|
||||||
|
|
||||||
pyko = 0;
|
pyko = 0;
|
||||||
optind = 0;
|
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "hp")) != -1) {
|
while ((ch = getopt(argc, argv, "hp")) != -1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
|
Loading…
Reference in New Issue