public static function arguments(array $args) : array
    {
        putenv("CODGER_DRY=1");
        foreach ($args as $key => $value) {
            if ($value === '-w') {
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
            if ($value === '-o') {
                putenv("CODGER_OVERWRITE=1");
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
            if ($value === '-d') {
                putenv("CODGER_OVERWRITE=0");
                putenv("CODGER_DUMP=1");
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
            if ($value === '-s') {
                putenv("CODGER_OVERWRITE=0");
                putenv("CODGER_SKIP=1");
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
        }
        return array_values($args);
    }
public static function arguments(array $args) : array
    {
        putenv("CODGER_DRY=1");
        foreach ($args as $key => $value) {
            if ($value === '-w') {
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
            if ($value === '-o') {
                putenv("CODGER_OVERWRITE=1");
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
            if ($value === '-d') {
                putenv("CODGER_OVERWRITE=0");
                putenv("CODGER_DUMP=1");
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
            if ($value === '-s') {
                putenv("CODGER_OVERWRITE=0");
                putenv("CODGER_SKIP=1");
                putenv("CODGER_DRY=0");
                unset($args[$key]);
            }
        }
        return array_values($args);
    }
public static function arguments ( array $ args ) : array { putenv ( "CODGER_DRY=1" ) ; foreach ( $ args as $ key => $ value ) { if ( $ value === '-w' ) { putenv ( "CODGER_DRY=0" ) ; unset ( $ args [ $ key ] ) ; } if ( $ value === '-o' ) { putenv ( "CODGER_OVERWRITE=1" ) ; putenv ( "CODGER_DRY=0" ) ; unset ( $ args [ $ key ] ) ; } if ( $ value === '-d' ) { putenv ( "CODGER_OVERWRITE=0" ) ; putenv ( "CODGER_DUMP=1" ) ; putenv ( "CODGER_DRY=0" ) ; unset ( $ args [ $ key ] ) ; } if ( $ value === '-s' ) { putenv ( "CODGER_OVERWRITE=0" ) ; putenv ( "CODGER_SKIP=1" ) ; putenv ( "CODGER_DRY=0" ) ; unset ( $ args [ $ key ] ) ; } } return array_values ( $ args ) ; }
Helper to return cleaned passed arguments.

@param array $args
@return array
Helper to return cleaned passed arguments .