{
  "id": "node-util-parseargs-table",
  "kind": "table",
  "slug": "node-util-parseargs",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-util-parseargs/",
  "title": "Node.js util.parseArgs: parse command-line flags",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "args",
      "source": "Node.js API docs",
      "detail": "argument strings; default is process.argv with execPath and filename removed"
    },
    {
      "name": "options",
      "source": "Node.js API docs",
      "detail": "keys are the long names of options"
    },
    {
      "name": "strict",
      "source": "Node.js API docs",
      "detail": "throw on unknown arguments or a type mismatch; default true"
    },
    {
      "name": "allowPositionals",
      "source": "Node.js API docs",
      "detail": "accept positional arguments; default false if strict is true"
    },
    {
      "name": "allowNegative",
      "source": "Node.js API docs",
      "detail": "set boolean options to false by prefixing the option name with --no-"
    },
    {
      "name": "tokens",
      "source": "Node.js API docs",
      "detail": "return the parsed tokens for custom behavior"
    },
    {
      "name": "type",
      "source": "Node.js API docs",
      "detail": "must be either boolean or string."
    },
    {
      "name": "short",
      "source": "Node.js API docs",
      "detail": "a single character alias."
    },
    {
      "name": "multiple",
      "source": "Node.js API docs",
      "detail": "if true, values are collected in an array; otherwise the last value wins."
    },
    {
      "name": "default",
      "source": "Node.js API docs",
      "detail": "applied only when the option does not appear, and it must match the type."
    }
  ],
  "related_slugs": [
    "node-process-and-console",
    "node-esm"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Node.js API docs); MIT (nodejs/node (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}