package com.vaguehope.morrigan;

import org.kohsuke.args4j.Option;

public class Args {

	@Option(name = "-d", aliases = { "--dlna" }, usage = "Enable DLNA.") private boolean dlna;
	@Option(name = "-i", aliases = { "--interface" }, usage = "Hostname or IP address of interface to bind to.") private String iface;
	@Option(name = "-p", aliases = { "--port" }, usage = "Local port to bind HTTP UI to.") private int httpPort = -1;
	@Option(name = "-s", aliases = { "--ssh" }, usage = "Local port to bind SSH UI to.") private int sshPort = -1;
	@Option(name = "-v", aliases = { "--verbose" }, usage = "print log lines for various events.") private boolean verboseLog = false;

	public String getInterface () {
		return this.iface;
	}

	public int getHttpPort() {
		return this.httpPort;
	}

	public int getSshPort() {
		return this.sshPort;
	}

	public boolean isDlna() {
		return this.dlna;
	}

	public boolean isVerboseLog() {
		return this.verboseLog;
	}

}

@@ -101,26 +101,8 @@
 me =
- %22-d%22, aliases = %7B
  %22--
@@ -106,18 +106,16 @@
 %22--dlna%22
- %7D
 , usage 
@@ -173,26 +173,8 @@
 me =
- %22-i%22, aliases = %7B
  %22--
@@ -183,18 +183,16 @@
 terface%22
- %7D
 , usage 
@@ -285,26 +285,8 @@
 me =
- %22-p%22, aliases = %7B
  %22--
@@ -290,18 +290,16 @@
 %22--port%22
- %7D
 , usage 
@@ -380,34 +380,16 @@
 me =
- %22-s%22, aliases = %7B
  %22--ssh%22
  %7D, 
@@ -384,18 +384,16 @@
  %22--ssh%22
- %7D
 , usage 

Remove single char args, this is not an interactive tool.