dearchap
dearchap
@ldelossa can you try fix from latest PR ? Kind of kludgy but works
@fiatjaf No one has specifically asked for this feature, so it depends. Also we have persistent flag support, so flags can be defined so that they can be placed anywhere...
@fiatjaf This starts getting complicated. Can you provide more examples of the behaviour ? if you have say ``` cli subcmd1 subcmd2 -f -s -t ``` that would be equivalent...
I understand the appeal of this but you are interpreting what the user want to achieve. Its is entirely possible that the subcmd wants to handle all the args itself...
How many utilities you see provide 3-4 level subcmds ? This library has to support that use case so we cannot make choices assuming a certain depth. urfave/cli is more...
@fiatjaf Can you add some test cases for this first ? If you want to test locally you can do ``` go test -v -failfast ``` that should give you...
@fiatjaf One more thing is to check the behavior when ShellCompletion is enabled. Pressing TAB and having the reorder, now sure how that might work.
@fiatjaf if you'd like us to add this feature please keep the branch open. We can try picking it up later . As you can see it's not that trivial...
@fiatjaf I've implemented this feature in #1977 so as to keep backward compatibility and work with autocomplete. I am closing this. Can you review that PR ? Much appreciated
@fiatjaf I have a potential fix at github.com:dearchap/cli/pos_args_flags_mix . Want to try it out ?