static int check_opt(const CmdArgs *cmd_args, const char *name, QDict *args)

{

    if (!cmd_args->optional) {

        qerror_report(QERR_MISSING_PARAMETER, name);

        return -1;

    }



    if (cmd_args->type == '-') {

        /* handlers expect a value, they need to be changed */

        qdict_put(args, name, qint_from_int(0));

    }



    return 0;

}

static int check_opt(const CmdArgs *cmd_args, const char *name, QDict *args)

{

    if (!cmd_args->optional) {

        qerror_report(QERR_MISSING_PARAMETER, name);

        return -1;

    }



    if (cmd_args->type == '-') {

        

        qdict_put(args, name, qint_from_int(0));

    }



    return 0;

}

static int FUNC_0(const CmdArgs *VAR_0, const char *VAR_1, QDict *VAR_2)

{

    if (!VAR_0->optional) {

        qerror_report(QERR_MISSING_PARAMETER, VAR_1);

        return -1;

    }



    if (VAR_0->type == '-') {

        

        qdict_put(VAR_2, VAR_1, qint_from_int(0));

    }



    return 0;

}

static int FUNC_0(const CmdArgs *VAR_0, const char *VAR_1, QDict *VAR_2)
{ if (!VAR_0->optional) { qerror_report(QERR_MISSING_PARAMETER, VAR_1); return -1; } if (VAR_0->type == '-') { qdict_put(VAR_2, VAR_1, qint_from_int(0)); } return 0; }