8000 Improve --showLogo flag behavior to suppress logo without requiring --showLogo=false · Issue #713 · 030/n3dr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Improve --showLogo flag behavior to suppress logo without requiring --showLogo=false #713
Closed
@ArmanTaheriGhaleTaki

Description

@ArmanTaheriGhaleTaki

What would you like to be added:

Improve the behavior of the --showLogo CLI flag in n3dr so that users can suppress the logo by simply omitting the flag or by using --showLogo without needing to specify --showLogo=false.

Specifically, change the logic so that:

If the user includes --showLogo, the logo will not be shown.

If the user does not include the flag, the logo will be shown by default.

Why is this needed:

Currently, due to the way the Cobra framework handles boolean flags, users must write --showLogo=false to prevent the logo from being displayed according to this stackoverflow link . This is not intuitive and differs from typical CLI user expectations, where simply adding a flag should be enough to enable its associated behavior.

Making this change will improve the user experience and align the flag usage with standard CLI conventions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0