globalOptions top-level property

List<Option> globalOptions
final

Implementation

final List<Option> globalOptions = [

  Option(
    name: '--api-key',
    description: 'Sets your API key to use for the command',
    args: [
      Arg(
      name: 'stripe api key'
    )
    ]
  ),
  Option(
    name: '--color',
    description: 'Enables or disables color output',
    args: [
      Arg(
      name: 'setting',
      suggestions: [

        FigSuggestion(name: 'on'),
        FigSuggestion(name: 'off'),
        FigSuggestion(name: 'auto')
      ]
    )
    ]
  ),
  Option(
    name: '--config',
    description: 'Sets your config file',
    args: [
      Arg(
      name: 'config filepath',
      template: 'filepaths'
    )
    ]
  ),
  Option(
    name: '--device-name',
    description: 'Runs command on behlaf of another device',
    args: [
      Arg(
      name: 'name'
    )
    ]
  ),
  Option(
    name: ['-h', '--help'],
    description: 'Provides the help documentation for commands, flags, and arguments'
  ),
  Option(
    name: '--log-level',
    description: 'Set the level of detail for log messages',
    args: [
      Arg(
      name: 'level',
      suggestions: [

        FigSuggestion(name: 'info'),
        FigSuggestion(name: 'debug'),
        FigSuggestion(name: 'warn'),
        FigSuggestion(name: 'error')
      ]
    )
    ]
  ),
  Option(
    name: ['-v', '--version'],
    description: 'Prints the version of the Stripe CLI'
  )
];