samg / timetrap

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

Only declare cli options when run as standalone #185

Closed jrnk closed 4 years ago

jrnk commented 4 years ago

Makes it possible to require timetrap as a gem in another ruby program

jrnk commented 4 years ago

Background for this need: I'm busy working on a bitbar plugin for timetrap so it's possible to see your active/running sheet in the menu bar and maybe switch to another one. I reckon timetrap is a CLI tool, but a combination where I can always see my running sheet seemed useful to me :)

categulario commented 4 years ago

what do you think @oklohr ? Looks good to me

oliviaklohr commented 4 years ago

what do you think @oklohr ? Looks good to me

Everything looks good by me!