$ civet --not-a-real-flag
/home/bbrk24/.nvm/versions/node/v20.13.1/lib/node_modules/@danielx/civet/dist/civet:202
throw new Error(`Invalid command-line argument ${arg}`);
^
Error: Invalid command-line argument --not-a-real-flag
at parseArgs (/home/bbrk24/.nvm/versions/node/v20.13.1/lib/node_modules/@danielx/civet/dist/civet:202:17)
at cli (/home/bbrk24/.nvm/versions/node/v20.13.1/lib/node_modules/@danielx/civet/dist/civet:421:44)
at Object.<anonymous> (/home/bbrk24/.nvm/versions/node/v20.13.1/lib/node_modules/@danielx/civet/dist/civet:635:3)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
Node.js v20.13.1
I think simply Error: Invalid command-line argument --not-a-real-flag would suffice.
Example:
I think simply
Error: Invalid command-line argument --not-a-real-flag
would suffice.