Skip to content

Strange behavior of CLI flags #1948

@jetexe

Description

@jetexe

Checklist

  • Are you running the latest v3 release? The list of releases is here.
  • Did you check the manual for your release? The v3 manual is here.
  • Did you perform a search about this feature? Here's the GitHub guide about searching.

Problem

Currently if you mark your flag as required and try to call a command with --help flag you will get an error:

Required flag "<name>" not set

Same for the validation: If you want to print help you will get the validation error.

Proposal

I'm suggesting we don't run a validation and required check during help printing

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v3relates to / is being considered for v3status/triagemaintainers still need to look into thisstatus/waiting-for-responseWaiting for response from original requester

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions