module Timetrap module CLI extend Helpers attr_accessor :args extend self USAGE = <<-EOF Timetrap - Simple Time Tracking Usage: #{File.basename $0} COMMAND [OPTIONS] [ARGS...] COMMAND can be abbreviated. For example `t in` and `t i` are equivalent. 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. usage: t configure Currently supported options are: round_in_seconds: The duration of time to use for rounding with the -r flag database_file: The file path of the sqlite database append_notes_delimiter: delimiter used when appending notes via t edit --append * 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] [--append] [NOTES] -i, --id Alter entry with id instead of the running entry -s, --start Change the start time to