public String[] getRemainingParams() {
        if (index >= params.length) {
            return new String[0];
        }
        String param = params[index];
        if ("--".equals(param)) {
            // Skip end of options marker
            return Arrays.copyOfRange(params, index + 1, params.length);
        } else {
            return Arrays.copyOfRange(params, index, params.length);
        }
    }
Returns the remaining command-line parameters. This is intended to be invoked once
{@link #nextOption()} returns {@code null}.
cli/src/main/java/com/mcxiaoke/packer/cli/Options.java