Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Provide more descriptive usage error messaging #200

Closed
@nathanpotter

Description

@nathanpotter

When running a command with incorrect args, I would imagine the output would show more information. Right now it shows like the following:
Screen Shot 2020-12-04 at 2 27 34 PM

I would imagine we would have something like:

$ kubectl get
You must specify the type of resource to get. Use "kubectl api-resources" for a complete list of supported resources.
error: Required resource not specified.
Use "kubectl explain <resource>" for a detailed description of that resource (e.g. kubectl explain pods).
See 'kubectl get -h' for help and examples

where it provides a decent message with info about running the command w/ the -h flag for additional details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions