kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 296b1693ac589cbdf2071111c5c8cbf546adce49
parent c257299fa4bd3b4637374200e4f34a8894bbe959
Author: Joris Vink <joris@coders.se>
Date:   Fri, 15 Jun 2018 20:51:48 +0200

don't forward argc/argv for kodev create.

Means we don't have to do weird shit that doesn't work on !macos anyway.

Diffstat:
src/cli.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -420,8 +420,10 @@ main(int argc, char **argv) for (i = 0; cmds[i].name != NULL; i++) { if (!strcmp(argv[0], cmds[i].name)) { - argc--; - argv++; + if (strcmp(argv[0], "create")) { + argc--; + argv++; + } command = &cmds[i]; cmds[i].cb(argc, argv); break; @@ -464,7 +466,6 @@ cli_create(int argc, char **argv) int i, ch, pyko; pyko = 0; - optind = 0; while ((ch = getopt(argc, argv, "hp")) != -1) { switch (ch) {