Skip to content

Crash when using a slash character as the name of a subcommand #580

@suzukieng

Description

@suzukieng

Just stumbled upon this, while migrating a HTTP/REST based API to a CLI utility (yes, these kinds of projects exist).

I attempted to name a subcommand "legacy/status" and got a crash (Visual Studio 10):

Unhandled exception at 0x759FA6E2 in xxx.exe: Microsoft C++ exception: CLI::IncorrectConstruction at memory location 0x010AF178.

Regardless of it being a good or bad idea to have a slash as part of a command name, a better error message or something in the (excellent!) documentation might help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds verification before next release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions