From: James Moger Date: Fri, 14 Mar 2014 16:15:57 +0000 (-0400) Subject: Simplify version command and output X-Git-Tag: v1.5.0~68^2~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39ffede55f79395d6d1298f24ce201dbae262a32;p=gitblit.git Simplify version command and output --- diff --git a/src/main/java/com/gitblit/transport/ssh/commands/VersionCommand.java b/src/main/java/com/gitblit/transport/ssh/commands/VersionCommand.java index fc3e01b3..c2c4f52d 100644 --- a/src/main/java/com/gitblit/transport/ssh/commands/VersionCommand.java +++ b/src/main/java/com/gitblit/transport/ssh/commands/VersionCommand.java @@ -16,20 +16,14 @@ 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()); } }