@@ -0,0 +1,1702 @@
+/*%0A *%0A *  Copyright 2018 Netflix, Inc.%0A *%0A *     Licensed under the Apache License, Version 2.0 (the %22License%22);%0A *     you may not use this file except in compliance with the License.%0A *     You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *     Unless required by applicable law or agreed to in writing, software%0A *     distributed under the License is distributed on an %22AS IS%22 BASIS,%0A *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A *     See the License for the specific language governing permissions and%0A *     limitations under the License.%0A *%0A */%0A%0Apackage com.netflix.genie.agent.cli;%0A%0Aimport com.beust.jcommander.IParameterValidator;%0Aimport com.beust.jcommander.ParameterException;%0Aimport com.beust.jcommander.validators.PositiveInteger;%0Aimport org.apache.commons.lang3.StringUtils;%0A%0A/**%0A * Parameter validators for command-line arguments.%0A *%0A * @author mprimi%0A * @since 4.0.0%0A */%0Afinal class ArgumentValidators %7B%0A%0A    /**%0A     * Hide constructor.%0A     */%0A    private ArgumentValidators() %7B%0A    %7D%0A%0A    /**%0A     * Validates a string parameter is not null or empty.%0A     */%0A    public static class StringValidator implements IParameterValidator %7B%0A%0A        /**%0A         * %7B@inheritDoc%7D%0A         */%0A        @Override%0A        public void validate(final String name, final String value) throws ParameterException %7B%0A            if (StringUtils.isBlank(value)) %7B%0A                throw new ParameterException(name + %22 is null or empty%22);%0A            %7D%0A        %7D%0A    %7D%0A%0A    /**%0A     * Validates a integer parameter is a positive integer.%0A     */%0A    public static class PortValidator extends PositiveInteger %7B%0A    %7D%0A%7D%0A

Add ArgumentValidators utility class with CLI validators