Skip to content

occurences_of doesn't work with short names #1351

Answered by fadeevab
mehemken asked this question in Q&A
Discussion options

You must be logged in to vote

Whoever finds this: you have to use

matches.occurrences_of("verbose")

but NOT matches.occurrences_of("v")

It looks for the YAML key, not the short/long variants:

  - verbose:
      ...

BUT there is a bug now in the 3.0 version. This works: -v -v -v, it finds 3 occurrences, but the following doesn't work: -vvv - it finds 1 occurrence.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pksunkara
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CreepySkeleton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants