package com.tmitim.twittercli.commands;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;

import com.github.rvesse.airline.annotations.Arguments;
import com.github.rvesse.airline.annotations.Command;
import com.github.rvesse.airline.annotations.Option;
import com.github.rvesse.airline.annotations.help.BashCompletion;
import com.github.rvesse.airline.help.cli.bash.CompletionBehaviour;
import com.github.rvesse.airline.model.GlobalMetadata;

@Command(name = "help", description = "Get Help")
public class Help implements Runnable {

	@Inject
	private GlobalMetadata<Runnable> global;

	@Arguments(description = "Provides the name of the commands you want to provide help for")
	@BashCompletion(behaviour = CompletionBehaviour.CLI_COMMANDS)
	private List<String> commandNames = new ArrayList<String>();

	@Option(name = { "-v", "--version" }, description = "twittercli version")
	private boolean getVersion;

	@Override
	public void run() {
		try {
			if (getVersion) {
				String version = this.getClass().getPackage().getImplementationVersion();
				System.out.println(String.format("TwitterCLI4j: %s", version));
			} else {
				com.github.rvesse.airline.help.Help.help(global, commandNames);
			}

		} catch (IOException e) {
			System.err.println("Failed to output help: " + e.getMessage());
			e.printStackTrace(System.err);
		}
	}

}
@@ -257,61 +257,8 @@
 nd;%0A
-import com.github.rvesse.airline.annotations.Option;%0A
 impo
@@ -811,330 +811,45 @@
 %0A%09@O
-ption(name = %7B %22-v%22, %22--version%22 %7D, description = %22twittercli version%22)%0A%09private boolean getVersion;%0A%0A%09@Override%0A%09public void run() %7B%0A%09%09try %7B%0A%09%09%09if (getVersion) %7B%0A%09%09%09%09String version = this.getClass().getPackage().getImplementationVersion();%0A%09%09%09%09System.out.println(String.format(%22TwitterCLI4j: %25s%22, version));%0A%09%09%09%7D else %7B%0A%09
+verride%0A%09public void run() %7B%0A%09%09try %7B%0A
 %09%09%09c
@@ -915,14 +915,8 @@
 s);%0A
-%09%09%09%7D%0A%0A
 %09%09%7D 

Remove redundant version flag in help