Skip to content

Slop::Options and Slop::Parser not decoupled #228

@moritzschepp

Description

@moritzschepp

Excellent library, I use it a lot. Thanks for sharing it!

This is not really a bug. I just didn't expect the behavior. Consider this:

o = Slop::Options.new
o.string '--something', 'give me something'
opts1 = Slop::Parser.new(o).parse([])
opts2 = Slop::Parser.new(o).parse(['--something', 'cool'])

It seems that now

opts1[:something] == 'cool'

I'm using slop 4.6.2.

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