Skip to content

Parameter --description does not allow spaces in the value #1445

@jmatthaeus

Description

@jmatthaeus

Describe the bug
When using a command that utilizes the parameter --description, spaces will cause the command to fail e.g. mw app copy a-abcde --description=MeineApp Kopie will result in:

╭──────────────────────────────────────────────────────────────────────────────╮
│ ERROR                                                                        │
│                                                                              │
│ An error occurred while executing this command:                              │
│                                                                              │
│   Error: Unexpected argument: Kopie                                        │
│   See more help with --help                                                  │
│                                                                              │
│ If you believe this to be a bug, please open an issue at                     │
│ https://github.com/mittwald/cli/issues/new.                                  │
╰──────────────────────────────────────────────────────────────────────────────╯

  ERROR STACK TRACE

  Please provide this when opening a bug report.

  Error: Unexpected argument: Kopie
  See more help with --help
      at validateArgs (/usr/local/mw/node_modules/@oclif/core/lib/parser/validate.js:18:19)
      at validate (/usr/local/mw/node_modules/@oclif/core/lib/parser/validate.js:190:5)
      at Object.parse (/usr/local/mw/node_modules/@oclif/core/lib/parser/index.js:19:35)
      at async Copy.parse (/usr/local/mw/node_modules/@oclif/core/lib/command.js:253:25)
      at async Copy.init (file:///usr/local/mw/dist/lib/basecommands/ExtendedBaseCommand.js:10:33)
      at async Copy._run (/usr/local/mw/node_modules/@oclif/core/lib/command.js:310:13)
      at async Config.runCommand (/usr/local/mw/node_modules/@oclif/core/lib/config/config.js:433:25)
      at async Object.run (/usr/local/mw/node_modules/@oclif/core/lib/main.js:92:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeedback-requiredFeedback from OP is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions