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

sade arg parsing weirdness in w3 space create #130

Open
olizilla opened this issue Nov 16, 2023 · 2 comments
Open

sade arg parsing weirdness in w3 space create #130

olizilla opened this issue Nov 16, 2023 · 2 comments

Comments

@olizilla
Copy link
Contributor

olizilla commented Nov 16, 2023

either the space name or the -nr flag gets ignored depending on arg order.

with -nr flag set i should not be promted to save the key, and yet

❯ w3 space create 'fruits' -nr
πŸ”‘ You need to save the following secret recovery key somewhere safe! For example write it down on a piece of paper and put it inside your favorite book.

with name arg provided i should not be prompted to choose a name, and yet

❯ w3 space create -nr 'fruits'
? What would you like to call this space?
@olizilla
Copy link
Contributor Author

long form flag works in either position

❯ w3 space create --no-recovery 'fruits'
πŸ—οΈ To serve this space we need to set a billing account
✨ Billing account is set
⛓️ To manage space across devices we need to authorize an account
✨ Account is authorized
⁂ Space created: did:key:z6Mku56ywWspVnzkcVQbeSkw6egVRSNKVSYgS38HhKcUJRiN

~
❯ w3 space create 'veg' --no-recovery
πŸ—οΈ To serve this space we need to set a billing account
✨ Billing account is set
⛓️ To manage space across devices we need to authorize an account
✨ Account is authorized
⁂ Space created: did:key:z6Mktg5HxV1fifagzK8tnXXgCDsw1o4ekQHQpp9DKbLkh9hU

@olizilla
Copy link
Contributor Author

i suspect it is that it's a bug around parsing short flags that are more than 1 char long.

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

No branches or pull requests

1 participant