]> source.dussan.org Git - gitblit.git/commitdiff
Simplify version command and output
authorJames Moger <james.moger@gitblit.com>
Fri, 14 Mar 2014 16:15:57 +0000 (12:15 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 10 Apr 2014 22:58:08 +0000 (18:58 -0400)
src/main/java/com/gitblit/transport/ssh/commands/VersionCommand.java

index fc3e01b3d41cd2fa1e95fd51afac96a8ce6a20a8..c2c4f52d62524c684739be8b6bb8b715d2c11762 100644 (file)
 
 package com.gitblit.transport.ssh.commands;
 
-import org.kohsuke.args4j.Option;
-
 import com.gitblit.Constants;
 import com.gitblit.transport.ssh.CommandMetaData;
 
-@CommandMetaData(name="version", description = "Print Gitblit version")
+@CommandMetaData(name="version", description = "Display the Gitblit version")
 public class VersionCommand extends SshCommand {
 
-  @Option(name = "--verbose", aliases = {"-v"},  metaVar = "VERBOSE", usage = "Print verbose versions")
-  private boolean verbose;
-
   @Override
   public void run() {
-         stdout.println(String.format("Version: %s", Constants.getGitBlitVersion(),
-        verbose));
+         stdout.println(Constants.getGitBlitVersion());
   }
 }