Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Required flag, yet has default? #148

Closed
utdrmac opened this issue Jun 24, 2022 · 2 comments
Closed

Required flag, yet has default? #148

utdrmac opened this issue Jun 24, 2022 · 2 comments

Comments

@utdrmac
Copy link

utdrmac commented Jun 24, 2022

Describe the bug

$ dbdeployer downloads add Percona-Server-8.0.28-20-Linux.x86_64.glibc2.17-minimal.tar.gz --flavor percona
Error: required flag(s) "OS", "url" not set
Usage:
  dbdeployer downloads add tarball_name [flags]

Flags:
      --OS string              Define the tarball OS (default: current OS)

If the flag has a default, then why is it required?

To Reproduce
See above

Expected behavior
For defaults to be used as defaults

@datacharmer
Copy link
Owner

Hi,
Thanks for reporting this issue.
The default value is a mistake. The help should not mention it, and in fact there is no default value set for this option.
The help text will be fixed in the next release.

@datacharmer
Copy link
Owner

Fixed in version 1.65.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants