Replies: 6 comments 1 reply
-
Hey @tbruyelle, I completely agree, it's annoying to have to watch out for argument positions, otherwise they don't get picked up correctly in the command. As you've mentioned, it's due to the way ffcli does flag parsing (relevant issue). This has been just a UX pain-point. I'll look into opening up a PR on ffcli that solves this, and we can take it from there |
Beta Was this translation helpful? Give feedback.
-
It would be nice if you can add this feature to ffcli. Because else I fear this UX pain-point can raise complains from users indefinitively. |
Beta Was this translation helpful? Give feedback.
-
Yes! Agree with Thomas. Why not forking it in fact. The project philosophy is "flags first".
Forking would also help making our call stack trace more centered on gno. That being said, I'm not sure if this is urgent. |
Beta Was this translation helpful? Give feedback.
-
To be honest I wouldn't impose any order, people are used to order args and flags as they wish, so let's remove that regression. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback. I agree with your suggestions and have proposed changes. Please see: #731. |
Beta Was this translation helpful? Give feedback.
-
With #762 merged, flags can be passed after command arguments. |
Beta Was this translation helpful? Give feedback.
-
ffcli
requires to position the CLI arguments at the very end of the command line, or else it's not able to parse properly and outputs an errorflag: help requested
Example :
The accepted command is :
$ $ gnokey broadcast -remote "127.0.0.1:26657" signed.tx
because here
signed.tx
is an argument.This is annoying in a context of developers that are used to CLI where you can put your flags whatever you want. I personally found that disturbing, so I assume it would be the same for others.
One thing that could avoid this annoyance is to stop using arguments, and put everything in flags.
For instance, instead of :
we could have
In that case there's no possible ordering issue, we can write
-txpath
before-remote
it's not a problem.Beta Was this translation helpful? Give feedback.
All reactions