From 39ffede55f79395d6d1298f24ce201dbae262a32 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 14 Mar 2014 12:15:57 -0400 Subject: [PATCH] Simplify version command and output --- .../gitblit/transport/ssh/commands/VersionCommand.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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()); } } -- 2.39.5