Honor --version

pull/16/head
Andrew Gaul 2014-08-21 22:20:41 -07:00
rodzic f346e703c7
commit c44cfdfbd4
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -87,7 +87,11 @@ public final class S3Proxy {
}
public static void main(String[] args) throws Exception {
if (args.length != 2) {
if (args.length == 1 && args[0].equals("--version")) {
System.err.println(
S3Proxy.class.getPackage().getImplementationVersion());
System.exit(0);
} else if (args.length != 2) {
System.err.println("Usage: s3proxy --properties FILE");
System.exit(1);
}