module Timetrap module CLI extend Helpers attr_accessor :args extend self USAGE = <<-EOF Timetrap - Simple Time Tracking Usage: #{File.basename $0} COMMAND [OPTIONS] [ARGS...] where COMMAND is one of: * archive - move entries to a hidden sheet (by default named '_[SHEET]') so they're out of the way. usage: t archive [--start DATE] [--end DATE] [SHEET] -s, --start Include entries that start on this date or later -e, --end Include entries that start on this date or earlier * backend - open an sqlite shell to the database usage: t backend * configure - write out a config file. print path to config file. * display - display the current timesheet or a specific. Pass `all' as SHEET to display all sheets. usage: t display [--ids] [--start DATE] [--end DATE] [--format FMT] [SHEET | all] -v, --ids Print database ids (for use with edit) -s, --start Include entries that start on this date or later -e, --end Include entries that start on this date or earlier -f, --format The output format. Currently supports ical, csv, and text (default). * edit - alter an entry's note, start, or end time. Defaults to the active entry usage: t edit [--id ID] [--start TIME] [--end TIME] [NOTES] -i, --id Alter entry with id instead of the running entry -s, --start Change the start time to