oz / tz

🌐 A time zone helper
GNU General Public License v3.0
849 stars 33 forks source link

Watch flag -w clashes with keyboard navigation and -when #58

Closed jnd-au closed 2 weeks ago

jnd-au commented 3 weeks ago

The unreleased watch flag -w (057fc06) clashes with (a) keyboard navigation and (b) the -when option. That is, if the user:

wyne commented 3 weeks ago

What is the behavior you're expecting?

jnd-au commented 3 weeks ago

There are multiple possibilities, depending on personal preference, for example:

  1. Emit an error message and abort, due to the conflicting user options
    • Pro: Makes sense for -when CLI option
    • Con: Doesn’t make sense when the user does left-right interactive keyboard navigation
  2. Disable -w (watch) until t is pressed interactively
    • Pro: Full control to the user
    • Pro: Make senses when the user does left-right interactive keyboard navigation
    • Con: Silent acceptance of conflicting CLI options

I implemented Option 2 in PR #61.