Skip to content

Flags.version() causes TypeError #1389

@mdonnalley

Description

@mdonnalley

Describe the bug
A TypeError is thrown when using Flags.version

    TypeError: Parsing --version 
        this.jsonEnabled is not a function
    See more help with --help

To Reproduce
Steps to reproduce the behavior:

  1. Create a CLI using oclif generate version-bug --yes
  2. Add a version flag to one of the commands
  3. Run the command with --version

Expected behavior
The version printed to the console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions