Permalink
Browse files

Prevent invalid commands from being passed to default command

  • Loading branch information...
1 parent d26aacf commit af13539e9c7a3fd5882192ead3d40c30cd9ccd07 @stephenmckinney stephenmckinney committed Dec 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/pomo
View
@@ -285,6 +285,8 @@ command :list do |c|
c.option '-c', '--complete', 'List only completed tasks'
c.option '-i', '--incomplete', 'List only incompleted tasks'
c.action do |args, options|
+ abort "invalid command. See 'pomo help' for more information" unless args.empty?
+
config = Pomo::Configuration.load
total = 0
list.tasks.each_with_index do |task, i|

0 comments on commit af13539

Please sign in to comment.