How to use the @asciidoctor/cli.Options function in @asciidoctor/cli

To help you get started, we’ve selected a few @asciidoctor/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Mogztter / asciidoctor-pdf.js / lib / cli.js View on Github external
constructor () {
    this.options = new Options()
      .addOption('template-require', {
        describe: 'require the specified template script',
        type: 'string'
      })
      .addOption('watch', {
        alias: 'w',
        default: false,
        describe: 'enable watch mode',
        type: 'boolean'
      })
      .addOption('preview', {
        default: false,
        describe: 'open the otherwise headless browser for inspecting the generated HTML document (before it gets converted to PDF)',
        type: 'boolean'
      })
  }

@asciidoctor/cli

The Command Line Interface (CLI) for Asciidoctor.js

MIT
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis