Skip to content

Support short_name COLON value #284

@marwal-88

Description

@marwal-88

I think Slop should support '-v:8' as well as '-v=8' and '-v 8'

suggesting this change in parser.rb

        # support `foo=bar`
        orig_flag = flag.dup
        # if match = flag.match(/([^=]+)=(.*)/) # OLD
        if match = flag.match(/([^=:]+)[=:](.*)/) # NEW
          flag, arg = match.captures
        end

Will make --president:Trump work as-well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions