-
Notifications
You must be signed in to change notification settings - Fork 432
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
cli: bookmark move: allow short aliases for --to
/--from
#5943
Conversation
I'm the one who added those comments, and I'm not sure how strongly I feel about this today. I'll lay out the arguments that do come to mind, and I'm curious what others think about it. I think we should either support neither The fact that If we think this is a sufficient reason to reject this PR, we should probably add it to the comment. BTW, as an aside, I was hoping that most people would end up typing |
Just add both
|
2030ec2
to
2985809
Compare
--to
--to
/--from
2985809
to
9ff1ca1
Compare
If `--to` is going to become a required argument, it should have a short alias as it will be used quite frequently. Given that `--to` has a short alias it only makes sense to allow `-f` for `--from` as this is consistent with other commands and nothing makes this particular command special.
9ff1ca1
to
52ae882
Compare
I originally had added the
While I agree that we should support
This is my biggest argument---nothing makes this particular command special and users are going to expect that they can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
For completeness, I'll post the unfinished draft of a response I was writing. Ultimately, I'm fine with you guys making a decision, both on --from and on whether it makes sense to have -t without -f. It sounds like Yuya is fine with the later, and I'm happy to defer to him on this I'm still on the fence. At the moment, I continue to think that allowing IIRC, I was also concerned that
I don't think Some possible confusion this would lead to:
Footnotes
|
My stance is that |
OK, let's go with that then. |
Sounds good, thanks folks! |
Hello!
If
--to
is going to become a required argument, it should have a short alias as it will be used quite frequently.Additionally, I would argue in favor of using
-f
for--from
, given that is it used for other commands and we should be consistent (if users can use-f
as an alias for--from
on other commands then logically they would assume they can use it for this one). Not allowing it because users might mistake it to mean--force
isn't that big of a concern in my book given that--force
is not used as an option anywhere else (as far as I am aware) and the option requires an argument so it will fail even if a user does try to use it for such a purpose.If this is acceptable then I can send a follow up PR to add the alias for
--from
(or edit the current commit).Thanks!
Checklist
If applicable:
CHANGELOG.md