samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

Usability: edit command consistency with in/out #103

Open hoxu opened 10 years ago

hoxu commented 10 years ago

After using these commands all the time:

t in --at time
t out --at time

I keep writing these and expecting them to work:

t edit --in time
t edit --out time

Alas, the actual options are --start and --end (consistent with other commands though!), so I only end up overwriting the entry message.

Would it be possible to have --in and --out options work as --start and --end (perhaps even for all commands?), or alternatively make edit refuse to use unknown options as edited message (for example by requiring " -- " before text that begins "--something"?

samg commented 10 years ago

I think it seems reasonable to add --in and --out as aliases to --start and --end for the edit command. I may have time to add this feature at some point, but would also happily accept a pull request.

Thanks!