Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔥 entropy -a --help does not help and nukes config #244

Open
frankiebee opened this issue Sep 30, 2024 · 2 comments · May be fixed by #261
Open

🔥 entropy -a --help does not help and nukes config #244

frankiebee opened this issue Sep 30, 2024 · 2 comments · May be fixed by #261
Assignees

Comments

@frankiebee
Copy link
Collaborator

if you run the command above it will nuke your config. proceed with caution... and backups

@frankiebee
Copy link
Collaborator Author

side note: always failing now. my guess is because i have an empty config

@rh0delta
Copy link
Contributor

rh0delta commented Oct 18, 2024

@frankiebee it seems as though this is not an intended use of commander and would explain why this issue exists. as per the documentation the help option is intended for the command or subcommand being used.
Ref: https://github.com/tj/commander.js?tab=readme-ov-file#automated-help

Running help on subcommand:

entropy account register -h
Usage: entropy account register [options]

Register an entropy account with a program

Options:
  -e, --endpoint <endpoint>                               Runs entropy with the given endpoint and ignores network endpoints in config. Can also
                                                          be given a stored endpoint name from config eg: `entropy --endpoint test-net`. (default:
                                                          "ws://testnet.entropy.xyz:9944/", env: ENTROPY_ENDPOINT)
  -a, --account <accountAddressOrName>                    Sets the account for the session. Defaults to the last set account (or the first account
                                                          if one has not been set before). (env: ENTROPY_ACCOUNT)
  -h, --help                                              display help for command

@rh0delta rh0delta linked a pull request Oct 18, 2024 that will close this issue
8 tasks
@rh0delta rh0delta linked a pull request Oct 18, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants