Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConsistent cmd option order? #3642
Comments
|
I'm wondering whether -h -q -v can be moved to the bottom of all cmd -h outputs as a first step.. |
|
@jorgeorpinel They probably could be moved with some hack or something, but I would urge you to consider if this is really worth it. |
|
@jorgeorpinel I guess worth elaborating that moving -h/-v would require a non-trivial hack for argparse, which is probably too much effort for this kind of change. Not as easy as moving few lines around, unfortunately |
|
Yes, -h -q -v def. don't seem worth trying to move. I'm not sure about the other ones though, let's say you have 20 lines in your terminal vertically (most people will have more but still) you use -h on a big command like run and scroll back to the top of the output. Shouldn't the more commonly used options be shown first? It could potentially save time and make the experience a little better. It's probably marginal so I'm not obsessing over this or anything. We can just leave it open and if we never get to it just close it at some point. Or close it if you feel strongly against this, np on my side |
|
@jorgeorpinel Those are really good points! If we look at it that way, maybe it is worth hacking it at some point. Also, interesting to note that things like |


To match docs, where options have been ordered manually from more to less important (at least that's the idea).
Example difference:
(DVC 0.93.0)
vs. https://dvc.org/doc/command-reference/commit#options: