-
Notifications
You must be signed in to change notification settings - Fork 383
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
FR: cli option consistency #5397
Comments
|
Funny timing with #5394 from less than a day ago. As @arxanas said, there are semantic differences between some of them.
The reason is that we currently prefer to let positional arguments mean paths. So commands that accept paths (either currently or conceivably) require the revision to be passed via
That's actually an interesting case. I feel like it should accept |
i can see also, the docs for also, if it is intended that |
Edit: And |
We don't have such documentation yet. I suppose we could write some new doc about the CLI design philosophy in general. A less general but quicker solution would be to add an FAQ item or two.
Yes. I'll try to send a patch for that.
You're not. |
But only assuming |
See if #5400 helps clarify how the |
Is your feature request related to a problem? Please describe.
a lot of jj commands do something to two different revisions, but it is very hard to remember how to do this because there are quite a few different ways that different commands specify them (for instance, from a quick browse of the manual,
jj restore
uses--from/--to
,jj squash
uses--from/--into
,jj backout
uses--revisions/--destination
, andjj rebase
uses--source/--destination
).additionally, for commands that act on a single revision, it's pretty split between whether that revision must be passed as a plain arg or through
--revision
.currently i have to look up the correct option names in either the manual or my shell history pretty much every time i run one of these commands, which doesn't feel great.
Describe the solution you'd like
it'd be really helpful to standardize on a single way to refer to the commits that operations will act on. i don't really have a preference other than that it'd be great if it could be more consistent across different commands.
The text was updated successfully, but these errors were encountered: