options top-level property

List<Option> options
final

Implementation

final List<Option> options = [

  Option(
    name: ['-d', '--dry-run'],
    description: 'Report actions that would be taken without writing out results'
  ),
  Option(
    name: ['-p', '--project'],
    description: 'Project in which to generate files',
    args: [
      Arg(
      name: 'project',
      description: 'Project in which to generate files'
    )
    ]
  ),
  Option(
    name: '--flat',
    description: 'Enforce flat structure of generated element'
  ),
  Option(
    name: '--spec',
    description: 'Enforce spec files generation (default: true)',
    exclusiveOn: ['--no-spec']
  ),
  Option(
    name: '--no-spec',
    description: 'Disable spec files generation',
    exclusiveOn: ['--spec']
  ),
  Option(
    name: ['-c', '--collection'],
    description: 'Schematics collection to use',
    args: [
      Arg(
      name: 'collection',
      description: 'The collection name'
    )
    ]
  )
];