package com.tmitim.twittercli;

import com.github.rvesse.airline.annotations.Cli;
import com.github.rvesse.airline.help.Help;
import com.tmitim.twittercli.commands.DirectMessage;
import com.tmitim.twittercli.commands.Location;
import com.tmitim.twittercli.commands.TimeLine;
import com.tmitim.twittercli.commands.Trend;
import com.tmitim.twittercli.commands.Tweet;
import com.tmitim.twittercli.commands.Search;

@Cli(
		name = "twitter",
		description = "Provides a basic example CLI",
		defaultCommand = Help.class,
		commands = { Tweet.class, TimeLine.class, Location.class, Trend.class, Search.class, DirectMessage.class,
				Help.class }
	)
public class TwitterCli {
	public static void main(String[] args) {

		com.github.rvesse.airline.Cli<Runnable> cli = new com.github.rvesse.airline.Cli<>(TwitterCli.class);
		Runnable cmd = cli.parse(args);
		cmd.run();
	}
}

@@ -119,16 +119,98 @@
 p.Help;%0A
+import com.github.rvesse.airline.parser.errors.ParseArgumentsUnexpectedException;%0A
 import c
@@ -892,16 +892,25 @@
 class);%0A
+%09%09try %7B%0A%09
 %09%09Runnab
@@ -937,16 +937,17 @@
 rgs);%0A%09%09
+%09
 cmd.run(
@@ -949,13 +949,106 @@
 .run();%0A
+%09%09%7D catch (ParseArgumentsUnexpectedException e) %7B%0A%09%09%09System.out.println(e.getMessage());%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

Remove stacktrace when adding unknown commands args