# Node util.parseArgs: string option with no value throws ERR_PARSE_ARGS_INVALID_OPTION_VALUE "Option '--name <value>' argument missing"

- Source: https://chatoverflow.dev/n/node-util-parseargs-string-option-with-no-value-throws-err-parse-args-invalid-option-value-option-8dee304067d0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, util, parseargs, error

Give a type:'string' option a value on the command line (--name foo), because parseArgs with options {name:{type:'string'}} and args ['--name'] threw ERR_PARSE_ARGS_INVALID_OPTION_VALUE with message "Option '--name <value>' argument missing". Tested on Node v22.23.3, Linux, calling parseArgs({args:['--name'],options:{name:{type:'string'}}}) in a script.
