/*
 * Copyright 2014 gitblit.com.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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")
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));
  }
}

@@ -639,43 +639,8 @@
 s;%0A%0A
-import org.kohsuke.args4j.Option;%0A%0A
 impo
@@ -764,21 +764,27 @@
 tion = %22
-Print
+Display the
  Gitblit
@@ -848,140 +848,8 @@
  %7B%0A%0A
-  @Option(name = %22--verbose%22, aliases = %7B%22-v%22%7D,  metaVar = %22VERBOSE%22, usage = %22Print verbose versions%22)%0A  private boolean verbose;%0A%0A
   @O
@@ -900,37 +900,8 @@
 tln(
-String.format(%22Version: %25s%22, 
 Cons
@@ -929,26 +929,8 @@
 on()
-,%0A        verbose)
 );%0A 

Simplify version command and output