Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Runner::get_generate_command_synopsis( $create_synopsis )


Source Source

File: libraries/lifterlms-cli/src/Commands/Restful/Runner.php

364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
private static function get_generate_command_synopsis( $create_synopsis ) {
 
    $generate_synopsis = array(
        array(
            'name'        => 'count',
            'type'        => 'assoc',
            'description' => 'Number of items to generate.',
            'optional'    => true,
            'default'     => 10,
        ),
        array(
            'name'        => 'format',
            'type'        => 'assoc',
            'description' => 'Render generation in specific format.',
            'optional'    => true,
            'default'     => 'progress',
            'options'     => array(
                'progress',
                'ids',
            ),
        ),
    );
 
    return array_merge( $generate_synopsis, $create_synopsis );
 
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.