packages/vuepress/lib/util.js
async function CLI ({
  beforeParse,
  afterParse
}) {
  const cli = CAC()
  beforeParse && await beforeParse(cli)
  cli.parse(process.argv)
  afterParse && await afterParse(cli)
}
async function CLI ({
  beforeParse,
  afterParse
}) {
  const cli = CAC()
  beforeParse && await beforeParse(cli)
  cli.parse(process.argv)
  afterParse && await afterParse(cli)
}
async function CLI ( { beforeParse , afterParse } ) { const cli = CAC ( ) beforeParse && await beforeParse ( cli ) cli . parse ( process . argv ) afterParse && await afterParse ( cli ) }
Bootstrap a CAC cli
@param {function} beforeParse
@param {function} adterParse
@returns {Promise<void>}
Bootstrap a CAC cli