Skip to content

Support for dashes in command names (as was possible in Aloe) #3

@patrickvuarnoz

Description

@patrickvuarnoz

Aloe supported dashes in commands, something like auto-create-reports. Sprout does not support that anymore because of the regexp used to parse the commands.

/src/Sprout/App.php, line 344:

if (!preg_match('/^([\w:]+)(.*?)((?:\{\s*--.*\})+)?$/s', $signature, $matches)) {
    return null;
}

If changed to this it will also support dashes:

if (!preg_match('/^([\w:-]+)(.*?)((?:\{\s*--.*\})+)?$/s', $signature, $matches)) {
    return null;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions