{"record":{"id":"ab3702448c1f6e82","repo":"quasarframework/quasar","slug":"err-parse-args-unknown-option-ab3702","errorCode":"ERR_PARSE_ARGS_UNKNOWN_OPTION","errorMessage":"Unknown error while parsing arguments","messagePattern":"Unknown error while parsing arguments","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"icongenie/lib/utils/get-argv.js","lineNumber":37,"sourceCode":"\nexport function getArgv(options, { strict = true } = {}) {\n  try {\n    const { values, positionals } = parseArgs({\n      options,\n      strict,\n      allowPositionals: true\n    })\n\n    return { ...parseValues(values), _: positionals }\n  } catch (err) {\n    return {\n      help: true,\n      _: [],\n\n      // Should be handled if (argv.help) in the caller\n      __warn() {\n        console.error(err)\n        warn(\n          err?.code === 'ERR_PARSE_ARGS_UNKNOWN_OPTION'\n            ? err.message\n            : 'Unknown error while parsing arguments'\n        )\n        warn()\n        process.exit(1)\n      }\n    }\n  }\n}\n","sourceCodeStart":19,"sourceCodeEnd":48,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/icongenie/lib/utils/get-argv.js#L19-L48","documentation":"icongenie's get-argv wraps util.parseArgs for commands like `icongenie generate`/`profile`. On parse failure, __warn logs the full error, prints the parseArgs message for ERR_PARSE_ARGS_UNKNOWN_OPTION (unknown flag) or this generic fallback, and exits 1. This is icongenie's variant of the shared get-argv pattern across Quasar packages.","triggerScenarios":"Invoking icongenie with a flag not registered for that subcommand — e.g. `icongenie generate --qualty 90` (typo for --quality) or a profile-related flag on the wrong subcommand.","commonSituations":"Typos in long option names; reusing flags from `quasar dev` or other packages; stale flags from older icongenie versions documented in old tutorials; copy-paste errors that merge two flags together.","solutions":["Run `icongenie --help` or `icongenie generate --help` for the exact option list","Fix the typo or remove the unsupported flag (e.g. --qualty -> --quality)","Verify flags against current icongenie docs for your installed version","Quote paths/values containing spaces so tokens parse correctly"],"exampleFix":"// before\nicongenie generate --qualty 90\n// after\nicongenie generate --quality 90","handlingStrategy":"validation","validationCode":"// check icongenie's accepted options before invoking\nconst { execSync } = require('node:child_process')\nconst help = execSync('icongenie generate --help').toString()\nconst flag = '--quality'\nif (!help.includes(flag)) {\n  throw new Error(`Flag ${flag} is not supported by 'icongenie generate'`)\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Check `icongenie generate --help` / `icongenie profile --help` for valid flags","Avoid reusing quasar dev/build flags with icongenie — option sets are unrelated","Double-check spelling of long options like --quality, --icon, --background","Update icongenie docs/tutorials references when upgrading versions"],"tags":["cli","arguments","parseargs","icongenie"],"backgroundTag":"unknown-cli-option","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}