Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Usage not shown by default #168

@brady691213

Description

@brady691213

Your documentation suggests that my Cocona app with show usage text when started with dotnet run:

$ dotnet run
Usage: ConsoleAppSample [--name <String>]

Options:
  --name <String>    (Required)
  -h, --help         Show help message
  --version          Show version

Yet after following your Getting Started guide to the letter, for only the first two steps, invoking dotnet run does not have the expected behaviour:

PS C:\Development\SourceReporting\SourceReporting.Cocona> dotnet run
Error: Option '--name' is required. See '--help' for usage.

You have to explicitly invoke help with dotnet run -- --help.

I am using Cocona 2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions