Repository script API / npm-bootstrap / parseBootstrapArguments
Function: parseBootstrapArguments()
parseBootstrapArguments(
args):object
Defined in: npm-bootstrap.mjs:28
Parses the one-package bootstrap command's positional path, release tag, and dry-run option.
Parameters
args
string[]
Arguments passed after the script name.
Returns
object
Parsed bootstrap options.
confirmWriteAccess
confirmWriteAccess:
boolean
dryRun
dryRun:
boolean
expectedOwner?
optionalexpectedOwner?:string
packagePath
packagePath:
string
tag
tag:
string
Throws
When an option is missing, repeated, or unsupported.