mirror of
https://github.com/actions/labeler
synced 2026-05-08 13:41:02 +02:00
build
This commit is contained in:
8
node_modules/yargs/lib/argsert.js
generated
vendored
8
node_modules/yargs/lib/argsert.js
generated
vendored
@@ -1,16 +1,18 @@
|
||||
'use strict'
|
||||
|
||||
// hoisted due to circular dependency on command.
|
||||
module.exports = argsert
|
||||
const command = require('./command')()
|
||||
const YError = require('./yerror')
|
||||
|
||||
const positionName = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']
|
||||
|
||||
module.exports = function argsert (expected, callerArguments, length) {
|
||||
function argsert (expected, callerArguments, length) {
|
||||
// TODO: should this eventually raise an exception.
|
||||
try {
|
||||
// preface the argument description with "cmd", so
|
||||
// that we can run it through yargs' command parser.
|
||||
let position = 0
|
||||
let parsed = {demanded: [], optional: []}
|
||||
let parsed = { demanded: [], optional: [] }
|
||||
if (typeof expected === 'object') {
|
||||
length = callerArguments
|
||||
callerArguments = expected
|
||||
|
||||
Reference in New Issue
Block a user