From: Ayabusa Date: Thu, 11 Jun 2026 17:22:04 +0000 (+0200) Subject: updated cli flags X-Git-Url: https://git.ayabusa.dev/?a=commitdiff_plain;h=83d00354e1092f09c3c70b455d4d3eaa9b90b307;p=thoryum.git updated cli flags --- diff --git a/src/cli.c b/src/cli.c index beeac75..fdaf60d 100644 --- a/src/cli.c +++ b/src/cli.c @@ -21,19 +21,19 @@ struct ctx *init_ctx(int argc, char **argv) { struct ctx *ctx = calloc(1, sizeof(struct ctx)); int opt; - while ((opt = getopt(argc, argv, "yul:")) != -1) { + while ((opt = getopt(argc, argv, "ycl:")) != -1) { switch (opt) { case 'y': ctx->silent = 1; break; - case 'u': + case 'c': ctx->mode = UPDATE; break; case 'l': ctx->install_loc = strdup(optarg); break; default: // bozo - fprintf(stderr, "Usage: %s [-h] [-u] [-y] [-l path]\n", + fprintf(stderr, "Usage: %s [-h] [-c] [-y] [-l path]\n", argv[0]); free(ctx); exit(EXIT_FAILURE); @@ -80,7 +80,7 @@ void print_help() { " -y\n" " Do not ask for confirmation and apply the install directly.\n" "\n" - " -u [DO NOT USE !!!]\n" + " -c [DO NOT USE !!!]\n" " This is used internally to check updates for an existing install,\n" " it should not be invoked by the user.\n" "\n"