package greed.conf.schema;

import greed.conf.meta.ConfigObjectClass;
import greed.conf.meta.Optional;
import greed.conf.meta.Required;

/**
 * Greed is good! Cheers!
 */
@ConfigObjectClass
public class CommandConfig {
    @Required
    private String execute;

    @Required
    private String[] arguments;

    @Optional
    private int timeout = -1;

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public String getExecute() {
        return execute;
    }

    public void setExecute(String execute) {
        this.execute = execute;
    }

    public String[] getArguments() {
        return arguments;
    }

    public void setArguments(String[] arguments) {
        this.arguments = arguments;
    }
}

@@ -256,32 +256,32 @@
 cute;%0A%0A    @
-Required
+Optional
 %0A    private
@@ -299,16 +299,32 @@
 rguments
+ = new String%5B0%5D
 ;%0A%0A    @

fix #147: arguments should be optional