We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f211a8 commit 81d1034Copy full SHA for 81d1034
code/logic/common.c
@@ -367,6 +367,16 @@ fossil_pizza_pallet_t fossil_pizza_pallet_create(int argc, char** argv) {
367
if (i + 1 < argc && pizza_io_cstr_compare(argv[i + 1], "--help") == 0) {
368
_show_subhelp_verbose();
369
}
370
+ } else if (strncmp(argv[i], "timeout=", 8) == 0) {
371
+ G_PIZZA_TIMEOUT = atoi(argv[i] + 8);
372
+ } else if (pizza_io_cstr_compare(argv[i], "timeout") == 0) {
373
+ if (i + 1 < argc && pizza_io_cstr_compare(argv[i + 1], "--help") == 0) {
374
+ _show_help();
375
+ exit(EXIT_SUCCESS);
376
+ }
377
+ } else {
378
+ pizza_io_printf("{red}Error: Unknown command or option '%s'.{reset}\n", argv[i]);
379
+ exit(EXIT_FAILURE);
380
381
382
0 commit comments