Skip to content

Default help formatter appends environment variable even when ${env} is inside the help string #246

@mitar

Description

@mitar

I have the following structure:

type Config struct {
	Project   string `short:"p" env:"CI_PROJECT_ID" help:"Environment variable: ${env}"`
}

And the help message I get is:

Environment variable: CI_PROJECT_ID ($CI_PROJECT_ID)

But I would expect it to be:

Environment variable: CI_PROJECT_ID

This issue is a followup to #244.

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