Added error message for unimplemented commands.

This commit is contained in:
Jonathan Bernard 2011-06-14 17:34:29 -05:00
parent 9819315fa9
commit 0749145ce0
2 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#Fri, 10 Dec 2010 11:26:36 -0600 #Tue, 14 Jun 2011 17:29:02 -0500
lib.local=true lib.local=true
name=gritter name=gritter
version=0.1 version=0.1
build.number=145 build.number=146
linux.nailgun.classpath.dir=/home/jdbernard/programs/nailgun/classpath linux.nailgun.classpath.dir=/home/jdbernard/programs/nailgun/classpath
nailgun.classpath.dir=C\:/Documents and Settings/jbernard/My Documents/ng-classpath nailgun.classpath.dir=C\:/Documents and Settings/jbernard/My Documents/ng-classpath

View File

@ -469,6 +469,9 @@ public class TwitterCLI {
def user = args.poll() def user = args.poll()
log.debug("Processing a 'show user' command, user = '{}'", user) 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) { public void createList(LinkedList args) {
@ -485,6 +488,11 @@ public class TwitterCLI {
public void help(LinkedList args) { public void help(LinkedList args) {
log.debug("Processing a 'help' command.") 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) { public void post(LinkedList args) {