From 0749145ce07d3fbce95f6abba5cd62bb2b6c3b94 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Tue, 14 Jun 2011 17:34:29 -0500 Subject: [PATCH] Added error message for unimplemented commands. --- project.properties | 4 ++-- src/com/jdbernard/twitter/TwitterCLI.groovy | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/project.properties b/project.properties index 036dfaf..74a4486 100644 --- a/project.properties +++ b/project.properties @@ -1,7 +1,7 @@ -#Fri, 10 Dec 2010 11:26:36 -0600 +#Tue, 14 Jun 2011 17:29:02 -0500 lib.local=true name=gritter version=0.1 -build.number=145 +build.number=146 linux.nailgun.classpath.dir=/home/jdbernard/programs/nailgun/classpath nailgun.classpath.dir=C\:/Documents and Settings/jbernard/My Documents/ng-classpath diff --git a/src/com/jdbernard/twitter/TwitterCLI.groovy b/src/com/jdbernard/twitter/TwitterCLI.groovy index b899873..ce24cb6 100644 --- a/src/com/jdbernard/twitter/TwitterCLI.groovy +++ b/src/com/jdbernard/twitter/TwitterCLI.groovy @@ -469,6 +469,9 @@ public class TwitterCLI { def user = args.poll() log.debug("Processing a 'show user' command, user = '{}'", user) + + println color("show user", colors.option) + + color(" is not yet implemented.", colors.error) } public void createList(LinkedList args) { @@ -485,6 +488,11 @@ public class TwitterCLI { public void help(LinkedList args) { log.debug("Processing a 'help' command.") + + // TODO: this being unimplemented really hurts the discoverability and + // useability of the tool, FIXME ASAP. + println color("help", colors.option) + + color(" is not yet implemented.", colors.error) } public void post(LinkedList args) {