diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/commands.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb index d1861de..9c7e913 100644 --- a/lib/hcl/commands.rb +++ b/lib/hcl/commands.rb @@ -108,11 +108,14 @@ module HCl end def note *args - message = args.join ' ' entry = DayEntry.with_timer if entry - entry.append_note message - "Added note to #{entry}." + if args.empty? + return entry.notes + else + entry.append_note args.join(' ') + "Added note to #{entry}." + end else puts "No running timers found." exit 1 |
