src/ctx.c:46:static void die(const char *fmt, ...) {
src/ctx.c:58:  if (sqlite3_exec(db, sql, NULL, NULL, &err) != SQLITE_OK) die("%s", err);
src/ctx.c:63:  if (sqlite3_open(path, &db) != SQLITE_OK) die("cannot open %s: %s", path, sqlite3_errmsg(db));
src/ctx.c:70:  if (sqlite3_prepare_v2(db, sql, -1, &q, NULL) != SQLITE_OK) die("%s", sqlite3_errmsg(db));
src/ctx.c:86:  if (!home || !*home) die("HOME is not set; set CTX_DB");
src/ctx.c:89:  if (!p) die("out of memory");
src/ctx.c:91:  if (mkdir(p, 0700) != 0 && errno != EEXIST) die("cannot create %s: %s", p, strerror(errno));
src/ctx.c:101:  if (!fossil) die("libfossil is not registered");
src/ctx.c:102:  if (!fts5) die("this SQLite has no FTS5");
src/ctx.c:127:    if (sqlite3_step(q) != SQLITE_ROW) die("cannot clone the private repository: %s", sqlite3_errmsg(db));
src/ctx.c:130:    die("this machine already has a private repository");
src/ctx.c:135:    if (sqlite3_step(q) != SQLITE_ROW) die("cannot create the private repository: %s", sqlite3_errmsg(db));
src/ctx.c:164:    if (!np) die("out of memory");
src/ctx.c:551:  if (!p) die("out of memory");
src/ctx.c:604:        if (!t->body) die("out of memory");
src/ctx.c:619:  if (!f) die("cannot open %s: %s", path, strerror(errno));
src/ctx.c:652:  if (!f) die("cannot open %s: %s", path, strerror(errno));
src/ctx.c:675:  if (user > CTX_USER_VERSION) die("this database is from a newer ctx (version %d)", user);
src/ctx.c:702:  if (db_int(db, "PRAGMA user_version") == 0) die("no ctx database here; run: ctx init");
src/ctx.c:731:  if (!open_repo(db, "me")) die("cannot open the private repository: %s", sqlite3_errmsg(db));
src/ctx.c:801:  if (sqlite3_step(up) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:806:  if (!done) die("out of memory");
src/ctx.c:911:    if (sqlite3_step(save) != SQLITE_ROW) die("cannot save the technote: %s", sqlite3_errmsg(db));
src/ctx.c:918:    if (sqlite3_step(day_in) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:926:    if (sqlite3_step(doc) != SQLITE_ROW) die("%s", sqlite3_errmsg(db));
src/ctx.c:950:      if (sqlite3_step(chunk) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:975:  if (sqlite3_step(pos) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:984:  if (stat(path, &st) != 0) die("cannot read %s: %s", path, strerror(errno));
src/ctx.c:999:  if (!repo_id) die("no private repository; run: ctx init");
src/ctx.c:1018:  if (!f) die("cannot open %s: %s", path, strerror(errno));
src/ctx.c:1019:  if (fseeko(f, (off_t)offset, SEEK_SET) != 0) die("cannot seek %s", path);
src/ctx.c:1047:          if (!turns) die("out of memory");
src/ctx.c:1120:static int search_run(sqlite3 *db, const char *match, const char *project, int limit, int history, const char *as_of, int quiet) {
src/ctx.c:1142:  sqlite3_bind_int(q, 3, limit);
src/ctx.c:1165:  if (rc != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:1170:/* ctx search [--all] [--history] [--as-of DATE] [--limit N] [--count] WORDS... */
src/ctx.c:1175:  int all = 0, limit = 12, nwords = 0, history = 0, count = 0;
src/ctx.c:1178:  if (!words) die("out of memory");
src/ctx.c:1187:    else if (!strcmp(argv[i], "--limit") && i + 1 < argc) limit = atoi(argv[++i]);
src/ctx.c:1190:  if (limit < 1) die("--limit must be at least 1");
src/ctx.c:1192:  if (!fts_query(nwords, words, &q)) die("no search words");
src/ctx.c:1200:  if (count) limit = -1; /* --count counts every hit, not just the first page */
src/ctx.c:1201:  int hits = search_run(db, q.p, project, limit, history, as_of, count);
src/ctx.c:1204:    hits = search_run(db, q.p, NULL, limit, history, as_of, count);
src/ctx.c:1224:    else if (have < 3) nums[have++] = atoi(argv[i]);
src/ctx.c:1236:  if (have < 1 || nums[0] <= 0) die("usage: ctx turn ID [BEFORE [AFTER]] [--full]");
src/ctx.c:1260:  if (rc != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:1263:  if (!found) die("no turn #%d", nums[0]);
src/ctx.c:1432:  static const struct { const char *name; long limit; } limits[] = {
src/ctx.c:1463:          if (!out[k].ms) die("out of memory");
src/ctx.c:1466:        for (int l = 0; limits[l].name; l++)
src/ctx.c:1467:          if (!strcmp(limits[l].name, name) && ms > limits[l].limit) out[k].over++;
src/ctx.c:1484:  printf("%-16s %7s %9s %8s %8s %8s %10s\n", "last days", "runs", "median ms", "p95 ms", "max ms", "cut off", "over limit");
src/ctx.c:1533:    if (!strcmp(argv[i], "--weeks") && i + 1 < argc) weeks = atoi(argv[++i]);
src/ctx.c:1535:    else if (!strcmp(argv[i], "--days") && i + 1 < argc) days = atoi(argv[++i]);
src/ctx.c:1536:    else die("usage: ctx stats [--weeks N] | --hooks [--days N]");
src/ctx.c:1539:  if (weeks <= 0) die("--weeks must be a positive number");
src/ctx.c:1552:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:1588:  if (rc != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:1605:  if (!p) die("out of memory");
src/ctx.c:1647:      if (!seen) die("out of memory");
src/ctx.c:1650:    if (!seen[n]) die("out of memory");
src/ctx.c:1722:    /* the scan is rate-limited to hourly, so it may ride on any turn: a session can run
src/ctx.c:1880:    if (sqlite3_step(save) != SQLITE_ROW) die("cannot save technote %s: %s", id, sqlite3_errmsg(db));
src/ctx.c:1951:        if (!seg) die("out of memory");
src/ctx.c:1983:    if (sqlite3_step(save) != SQLITE_ROW) die("cannot save technote %s: %s", id, sqlite3_errmsg(db));
src/ctx.c:2038:    else die("HOME is not set");
src/ctx.c:2043:  if (!top) die("cannot read %s: %s", root, strerror(errno));
src/ctx.c:2189:    if (!all) die("out of memory");
src/ctx.c:2198:  if (!set.slots) die("out of memory");
src/ctx.c:2229:/* ctx audit [--all] [--known] [--tickets] [--limit N] | ctx audit --allow ID [NOTE]. Exits 1 if any finding is open. */
src/ctx.c:2231:  int all = 0, use_known = 0, limit = 30, tickets = 0;
src/ctx.c:2238:    else if (!strcmp(argv[i], "--limit") && i + 1 < argc) limit = atoi(argv[++i]);
src/ctx.c:2242:    } else die("usage: ctx audit [--all] [--known] [--tickets] [--limit N] | --allow ID [NOTE]");
src/ctx.c:2255:    if (!changed) die("no finding #%lld", (long long)allow);
src/ctx.c:2320:  sqlite3_bind_int(l, 1, limit);
src/ctx.c:2346:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot set the ticket schema: %s", sqlite3_errmsg(db));
src/ctx.c:2349:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot apply the ticket schema: %s", sqlite3_errmsg(db));
src/ctx.c:2357:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot save the ticket: %s", sqlite3_errmsg(db));
src/ctx.c:2365:  if (sqlite3_step(q) != SQLITE_ROW) die("no ticket %s", prefix);
src/ctx.c:2367:  if (sqlite3_step(q) == SQLITE_ROW) die("ticket %s is ambiguous", prefix);
src/ctx.c:2383:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot create the ticket: %s", sqlite3_errmsg(db));
src/ctx.c:2404:      if (!rows) die("out of memory");
src/ctx.c:2415:             "%d open findings, %d distinct values, under rule %s. See them with ctx audit --limit 100. "
src/ctx.c:2521:      die("--type must be Task, Bug, Feature or Question");
src/ctx.c:2562:    if (sqlite3_step(q) != SQLITE_ROW) die("no ticket %s", id);
src/ctx.c:2597:      if (sqlite3_step(j) != SQLITE_ROW) die("%s", sqlite3_errmsg(db));
src/ctx.c:2636:    die("a project cannot use the repository name '%s'", out);
src/ctx.c:2641:  if (!open_repo(db, repo)) die("cannot open repo:%s: %s", repo, sqlite3_errmsg(db));
src/ctx.c:2648:    else die("usage: ctx project pull NAME [--from URL]");
src/ctx.c:2657:  if (sqlite3_step(q) != SQLITE_ROW) die("no project %s", name);
src/ctx.c:2660:  if (!remote) die("project %s has no remote; use --from URL", name);
src/ctx.c:2664:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot pull: %s", sqlite3_errmsg(db));
src/ctx.c:2685:  if (argc < 2 || strcmp(argv[0], "add")) die("usage: ctx project add NAME [--root DIR] [--import FILE | --clone URL] [--remote URL] | list | pull NAME [--from URL]");
src/ctx.c:2688:    if (i + 1 >= argc) die("%s needs a value", argv[i]);
src/ctx.c:2693:    else die("unknown option %s", argv[i]);
src/ctx.c:2696:  if (!realpath(root_opt, root)) die("cannot find %s: %s", root_opt, strerror(errno));
src/ctx.c:2703:  if (sqlite3_column_int(q, 0)) die("project %s already exists", name);
src/ctx.c:2705:  if (import && clone) die("use --import or --clone, not both");
src/ctx.c:2720:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot create the repository: %s", sqlite3_errmsg(db));
src/ctx.c:2727:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:2732:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:2754:  if (bad) die("cannot read %s", path);
src/ctx.c:2758:    if (!b.p) die("out of memory");
src/ctx.c:2768:  if (!f) die("cannot write %s: %s", path, strerror(errno));
src/ctx.c:2769:  if (fwrite(p, 1, n, f) != n || fclose(f)) die("cannot write %s", path);
src/ctx.c:2770:  if (rename(tmp, path)) die("cannot write %s: %s", path, strerror(errno));
src/ctx.c:2779:      if (mkdir(d, 0755) && errno != EEXIST) die("cannot create %s: %s", d, strerror(errno));
src/ctx.c:2786:  if (!h) die("cannot hash");
src/ctx.c:2789:  if (!out) die("out of memory");
src/ctx.c:2801:  if (!getcwd(cwd, sizeof cwd)) die("cannot read the current directory");
src/ctx.c:2807:  if (sqlite3_step(q) != SQLITE_ROW) die("no registered project here; run: ctx project add NAME");
src/ctx.c:2817:  if (!sqlite3_column_int(q, 0)) die("%s must be a date like 2026-03-31", flag);
src/ctx.c:2830:      if (file) die("only one file at a time");
src/ctx.c:2834:    if (i + 1 >= argc) die("%s needs a value", argv[i]);
src/ctx.c:2846:    else die("unknown option %s", o);
src/ctx.c:2848:  if (risk && strcmp(risk, "security") && strcmp(risk, "money") && strcmp(risk, "legal") && strcmp(risk, "api")) die("--risk must be security, money, legal or api");
src/ctx.c:2849:  if (!file) die("usage: ctx source add FILE --origin WHERE --class evergreen|versioned|perishable [--as PATH]");
src/ctx.c:2850:  if (!origin || !*origin) die("--origin is required: say where this source came from");
src/ctx.c:2851:  if (!source_class_ok(klass)) die("--class must be evergreen, versioned or perishable");
src/ctx.c:2852:  if (!strcmp(klass, "perishable") && !review) die("a perishable source needs --review-after DATE");
src/ctx.c:2858:    die("--as must be a plain path inside sources/");
src/ctx.c:2870:  if (!data) die("cannot read %s: %s", file, strerror(errno));
src/ctx.c:2875:    if (strcmp(oldh, hash)) die("sources/%s already exists with different content; a source is never edited in place", as);
src/ctx.c:2900:  if (sqlite3_step(q) != SQLITE_ROW) die("%s", sqlite3_errmsg(db));
src/ctx.c:2988:    if (argc != 1 && !project) die("usage: ctx source check [--project P]");
src/ctx.c:2998:  die("usage: ctx source add FILE --origin WHERE --class CLASS [options] | ctx source check [--project P]");
src/ctx.c:3055:  if (!out) die("out of memory");
src/ctx.c:3076:    if (!out) die("out of memory");
src/ctx.c:3192:    if (!line) die("out of memory");
src/ctx.c:3258:  if (sqlite3_step(q) != SQLITE_ROW) die("%s", sqlite3_errmsg(db));
src/ctx.c:3337:    if (!text) die("out of memory");
src/ctx.c:3415:  if (argc && !project_opt) die("usage: ctx index [--project P]");
src/ctx.c:3422:  if (sqlite3_step(q) != SQLITE_ROW) die("no project %s; run: ctx project add", project);
src/ctx.c:3431:  if (!mkdtemp(tmp)) die("cannot make a temporary directory: %s", strerror(errno));
src/ctx.c:3448:      if (!names) die("out of memory");
src/ctx.c:3615:  if (sqlite3_step(q) != SQLITE_ROW) die("no project %s; run: ctx project add", *project);
src/ctx.c:3657:    if (!links) die("out of memory");
src/ctx.c:3712:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot save the page: %s", sqlite3_errmsg(db));
src/ctx.c:3741:      if (i + 1 >= argc) die("%s needs a value", argv[i]);
src/ctx.c:3747:      else die("unknown option %s", o);
src/ctx.c:3750:    else die("usage: ctx wiki save NAME FILE --model M [--ticket ID]");
src/ctx.c:3752:  if (!name || !file) die("usage: ctx wiki save NAME FILE --model M [--ticket ID]");
src/ctx.c:3753:  if (!model || !*model) die("--model is required: say what compiled this page");
src/ctx.c:3754:  if (is_generated(name)) die("%s is generated by ctx wiki publish", name);
src/ctx.c:3757:  if (!raw) die("cannot read %s: %s", file, strerror(errno));
src/ctx.c:3759:  if (!raw) die("out of memory");
src/ctx.c:3774:  if (argc && !project_opt) die("usage: ctx wiki check [--project P]");
src/ctx.c:3865:  if (argc < 1) die("usage: ctx wiki why PAGE [--project P]");
src/ctx.c:3876:  if (sqlite3_step(q) != SQLITE_ROW || !sqlite3_column_text(q, 0)) die("no page %s", name);
src/ctx.c:3954:      if (i + 1 >= argc) die("%s needs a value", argv[i]);
src/ctx.c:3959:      else die("unknown option %s", o);
src/ctx.c:3961:    else die("too many arguments");
src/ctx.c:3963:  if (!name || (retire && (!reason || !*reason))) die("usage: ctx wiki retire PAGE --reason WHY [--by PAGE] | ctx wiki restore PAGE");
src/ctx.c:3971:  if (!text) die("no page %s", name);
src/ctx.c:3975:    if (is_retired) die("%s is already retired", name);
src/ctx.c:3978:      if (!target) die("no page %s", by);
src/ctx.c:3991:    if (!is_retired) die("%s is not retired", name);
src/ctx.c:3999:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot save the page: %s", sqlite3_errmsg(db));
src/ctx.c:4055:    if (!items) die("out of memory");
src/ctx.c:4074:  if (argc && !project_opt) die("usage: ctx wiki queue [--project P]");
src/ctx.c:4102:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot save %s: %s", name, sqlite3_errmsg(db));
src/ctx.c:4118:  if (argc && !project_opt) die("usage: ctx wiki publish [--project P]");
src/ctx.c:4221:    else die("usage: ctx wiki retire --auto [--apply] [--project P]");
src/ctx.c:4252:    if (!names || !blocked) die("out of memory");
src/ctx.c:4268:      if (!tickets) die("out of memory");
src/ctx.c:4347:  if (argc && !project_opt) die("usage: ctx wiki repin [--project P]");
src/ctx.c:4357:  if (sqlite3_step(q) != SQLITE_ROW) die("the project has no check-ins");
src/ctx.c:4367:    if (!pages) die("out of memory");
src/ctx.c:4432:        if (!tickets) die("out of memory");
src/ctx.c:4472:  die("usage: ctx wiki save NAME FILE --model M [--ticket ID] | check | why PAGE | repin | retire PAGE --reason WHY [--by PAGE] | restore PAGE");
src/ctx.c:4483:      if (i + 1 >= argc) die("%s needs a value", argv[i]);
src/ctx.c:4489:      else die("unknown option %s", o);
src/ctx.c:4491:    else die("too many arguments");
src/ctx.c:4493:  if (!old || !relation || !reason || !*reason) die("usage: ctx source supersede OLD --relation replaces|amends|retracts [--by NEW] --reason WHY");
src/ctx.c:4495:  if (!retract && strcmp(relation, "replaces") && strcmp(relation, "amends")) die("--relation must be replaces, amends or retracts");
src/ctx.c:4496:  if (!retract && !by) die("--by is required: say which source takes over");
src/ctx.c:4497:  if (retract && by) die("a retraction has no successor");
src/ctx.c:4504:  if (!exists(path)) die("no source %s", oldn);
src/ctx.c:4506:    if (!strcmp(oldn, newn)) die("a source cannot supersede itself");
src/ctx.c:4508:    if (!exists(path)) die("%s has no recorded origin; run ctx source add first", newn);
src/ctx.c:4515:    if (!text) die("out of memory");
src/ctx.c:4523:        if (!strcmp(was, oldn)) die("%s is already superseded", oldn);
src/ctx.c:4524:        if (by && !strcmp(was, newn)) die("%s is itself superseded; a successor must be current", newn);
src/ctx.c:4552:  if (argc < 1) die("usage: ctx source uses PATH [--project P]");
src/ctx.c:4668:    if (!notes) die("out of memory");
src/ctx.c:4691:        if (!text) die("out of memory");
src/ctx.c:4714:      if (sqlite3_step(q) != SQLITE_ROW) die("%s", sqlite3_errmsg(db));
src/ctx.c:4739:  if (argc != 2) die("usage: ctx remote NAME URL   (NAME is me, or a project)");
src/ctx.c:4749:  if (!sqlite3_changes(db)) die("no repository for %s", argv[0]);
src/ctx.c:4753:    if (!open_repo(db, repo)) die("cannot open repo:%s: %s", repo, sqlite3_errmsg(db));
src/ctx.c:4760:    if (sqlite3_step(q) != SQLITE_ROW) die("cannot write %s: %s", argv[1], sqlite3_errmsg(db));
src/ctx.c:4762:    if (chmod(argv[1], 0600)) die("cannot make %s private: %s", argv[1], strerror(errno)); /* it holds every session */
src/ctx.c:4802:    if (!t) die("out of memory");
src/ctx.c:4808:  if (only && !n) die("%s has no remote; run: ctx remote %s URL", only, only);
src/ctx.c:5022: * ?1 limits it to one session's turns, or is NULL for all. */
src/ctx.c:5064:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:5107:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:5136:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:5154:  if (sqlite3_step(q) != SQLITE_DONE) die("%s", sqlite3_errmsg(db));
src/ctx.c:5222:    version = ver ? atoi(ver + 9) : 0;
src/ctx.c:5268:      if (f->d_name[0] == 'v' && atoi(f->d_name + 1) > 0 && strstr(f->d_name, ".html") && !strstr(f->d_name, ".part") && nh < 256)
src/ctx.c:5269:        have[nh++] = atoi(f->d_name + 1);
src/ctx.c:5327:        if (sqlite3_step(s) != SQLITE_ROW) die("cannot keep %s: %s", url, sqlite3_errmsg(db));
src/ctx.c:5360:  if (sqlite3_step(q) != SQLITE_ROW || !sqlite3_column_text(q, 0)) die("no copy of %s is kept; `ctx artifacts` lists those that are", url);
src/ctx.c:5368:/* ctx artifacts [--all] [--limit N] [WORDS...]: pages agents published, newest first. */
src/ctx.c:5373:  long limit = 20;
src/ctx.c:5377:    else if (!strcmp(argv[i], "--limit") && i + 1 < argc) limit = atol(argv[++i]);
src/ctx.c:5378:    else if (argv[i][0] == '-') die("usage: ctx artifacts [--all] [--limit N] [WORDS...] | show URL | keep");
src/ctx.c:5395:  sqlite3_bind_int64(q, 3, limit);
src/ctx.c:5412:/* ctx decisions [--open] [--all] [--limit N]: questions agents asked the person, and their answers. */
src/ctx.c:5415:  long limit = 20;
src/ctx.c:5419:    else if (!strcmp(argv[i], "--limit") && i + 1 < argc) limit = atol(argv[++i]);
src/ctx.c:5420:    else die("usage: ctx decisions [--open] [--all] [--limit N]");
src/ctx.c:5432:  sqlite3_bind_int64(q, 3, limit);
src/ctx.c:5541:  if (sqlite3_step(q) != SQLITE_ROW) die("cannot save rule %s: %s", r->key, sqlite3_errmsg(db));
src/ctx.c:5623:    if (sqlite3_step(doc) != SQLITE_ROW) die("%s", sqlite3_errmsg(db));
src/ctx.c:5838:    else die("usage: ctx remember TEXT [--project P] [--until DATE] [--from TURN]");
src/ctx.c:5840:  if (!text || !*text) die("usage: ctx remember TEXT [--project P] [--until DATE] [--from TURN]");
src/ctx.c:5848:    if (sqlite3_step(f) != SQLITE_ROW) die("no turn %s with a transcript id", from);
src/ctx.c:6234:  int secs = dl && atoi(dl) > 0 ? atoi(dl) : MODEL_DEADLINE_SECS;
src/ctx.c:6275:/* Checks up to limit active rules whose project has new turns of the person since the
src/ctx.c:6277:static int rules_judge(sqlite3 *db, long limit, int quiet) {
src/ctx.c:6295:  sqlite3_bind_int64(pick, 1, limit);
src/ctx.c:6301:    if (!todo) die("out of memory");
src/ctx.c:6417:static int rules_propose(sqlite3 *db, long limit, int quiet) {
src/ctx.c:6435:  while (seen < limit && !failed) {
src/ctx.c:6441:    if (fd < 0) die("cannot make a temporary file: %s", strerror(errno));
src/ctx.c:6519:  if (!strcmp(sub, "judge")) return rules_judge(db, argc >= 3 && !strcmp(argv[1], "--limit") ? atol(argv[2]) : 20, 0);
src/ctx.c:6538:    if (argc < 2) die("usage: ctx rules keep KEY");
src/ctx.c:6542:    if (sqlite3_step(f) != SQLITE_ROW) die("no rule %s", argv[1]);
src/ctx.c:6543:    if (sqlite3_column_int(f, 1) > 1) die("%s names more than one rule; use its full key", argv[1]);
src/ctx.c:6557:    long limit = 30;
src/ctx.c:6560:      else if (!strcmp(argv[i], "--limit") && i + 1 < argc) limit = atol(argv[++i]);
src/ctx.c:6561:      else die("usage: ctx rules review [--limit N] [--done]");
src/ctx.c:6568:    sqlite3_bind_int64(q, 2, limit);
src/ctx.c:6578:        if (!keys) die("out of memory");
src/ctx.c:6604:    long limit = argc >= 3 && !strcmp(argv[1], "--limit") ? atol(argv[2]) : 200;
src/ctx.c:6607:    sqlite3_bind_int64(q, 1, limit);
src/ctx.c:6614:    long limit = argc >= 3 && !strcmp(argv[1], "--limit") ? atol(argv[2]) : 500;
src/ctx.c:6615:    return rules_propose(db, limit, 0);
src/ctx.c:6618:    if (argc < 3) die("usage: ctx rules suggest TURN TEXT");
src/ctx.c:6631:    if (!n) die("no turn %s typed by the person, or it is already proposed", argv[1]);
src/ctx.c:6665:  if (argc < 2) die("usage: ctx rules accept N [--text TEXT] [--until DATE] | reject N");
src/ctx.c:6671:    else die("usage: ctx rules accept N [--text TEXT] [--until DATE] | reject N");
src/ctx.c:6675:  if (sqlite3_step(q) != SQLITE_ROW) die("no open proposal %lld", (long long)id);
src/ctx.c:6733:      else die("usage: ctx rules retire KEY --reason WHY [--by KEY]");
src/ctx.c:6735:    if (!reason || !*reason) die("a retirement needs --reason");
src/ctx.c:6741:      if (sqlite3_column_int(f, 1) > 1) die("%s names more than one rule; use its full key", k);
src/ctx.c:6745:    if (!*full) die("no rule %s", k);

[Showing results with pagination = limit: 250]