REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.10 KB
Close
/opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/node_modules/nopt/lib/nopt.js
Text
Base64
const lib = require('./nopt-lib') const defaultTypeDefs = require('./type-defs') // This is the version of nopt's API that requires setting typeDefs and invalidHandler // on the required `nopt` object since it is a singleton. To not do a breaking change // an API that requires all options be passed in is located in `nopt-lib.js` and // exported here as lib. // TODO(breaking): make API only work in non-singleton mode module.exports = exports = nopt exports.clean = clean exports.typeDefs = defaultTypeDefs exports.lib = lib function nopt (types, shorthands, args = process.argv, slice = 2) { return lib.nopt(args.slice(slice), { types: types || {}, shorthands: shorthands || {}, typeDefs: exports.typeDefs, invalidHandler: exports.invalidHandler, unknownHandler: exports.unknownHandler, abbrevHandler: exports.abbrevHandler, }) } function clean (data, types, typeDefs = exports.typeDefs) { return lib.clean(data, { types: types || {}, typeDefs, invalidHandler: exports.invalidHandler, unknownHandler: exports.unknownHandler, abbrevHandler: exports.abbrevHandler, }) }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
debug.js
181 B
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nopt-lib.js
13.85 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nopt.js
1.10 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
type-defs.js
1.98 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).