package forager.newui;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;

import joptsimple.OptionParser;
import joptsimple.OptionSpec;

public class Server implements Command {

    public static int DEFAULT_PORT = 53380;

}

@@ -242,10 +242,797 @@
 53380;%0A%0A
+    private OptionParser parser = new OptionParser();%0A%0A    public void execute(String%5B%5D args) throws Exception %7B%0A        OptionSpec%3CInteger%3E port = parser.acceptsAll(%0A                Arrays.asList(%22p%22, %22port%22), %22Server port%22)%0A            .withRequiredArg()%0A            .ofType(Integer.class)%0A            .defaultsTo(DEFAULT_PORT);%0A%0A        OptionSpec%3C?%3E reset = parser.acceptsAll(%0A                Arrays.asList(%22r%22, %22reset%22), %22Reset (clear) the task list%22);%0A%0A        OptionSpec%3CFile%3E taskList = parser.acceptsAll(%0A                Arrays.asList(%22t%22, %22tasklist%22, %22task-list%22),%0A                %22Path to the task list (created if it doesn't exist)%22)%0A            .withRequiredArg()%0A            .ofType(File.class)%0A            .defaultsTo(new File(%22./tasklist%22));%0A%0A        printUsage();%0A    %7D%0A
 %7D%0A

Add execute method