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);
" -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"