-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
clock: add unset functionality #2181
Conversation
ctz? tf/ctf? |
What about Also musing that maybe it's less awkward to call these "clear" instead of "unset". My mental jury is still out on whether to put that before or after the type (e.g. |
Personally, where a command can be reused without making it too confusing, I prefer that over a new command. |
I disagree, I really try to avoid overloading a command where possible, and to @dgw's question, We also use .unset X repeatedly throughout the codebase, so I'd prefer to stay consistent there |
Welp, I can't laugh at "sorry, misclicked" people any more. Touchpads are something else… Rusty's points are well taken, and I'm just stuck on the missing |
Eh... Personally, I'd still rather one |
Good spot @dgw :) |
I'll defer to @dgw on this, since he has to maintain this, but personally, I am adamantly against overloading commands (especially a set command with unset functionality) to have complex usage logic, rather than having a few extra commands in help. |
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.
I'll approve this as-is. @RustyBower please just squash to one commit.
If we're going to have the argument about overloaded vs. separate commands, it should be held separately—and if overloading wins, we'd have to rework the .get*
commands in here too. Most likely overloaded command usage would be .setThing value
(set), .setThing
(get, no argument), and .setThing -
(unset, whether it's -
or something more verbose). But this is already too much about that line of reasoning.
Done |
Description
Adds functionality for user to unset their timezones if desired
Checklist
make qa
(runsmake quality
andmake test
)