Skip to content

[FEATURE] fix behaviour of flags_without_count option #133

@arl

Description

@arl

What we need is to let the possibility for the user to do all combinations, by being clever with the use of the flags_without_count option.

Remember that the default for flags_without_count is false

Everything is listed below and should be converted to test cases.

case 1 (non-empty symbol)

Symbol=S Count=1

  • flags_without_count: false
    prints: "S1"

  • flags_without_count: true
    prints: "S"

case 2 (empty symbol)

Symbol= Count=1

  • flags_without_count: false
    prints: "1"

  • flags_without_count: true
    prints: ""

case 3 (count is 0)

This remains unchanged and doesn't depend on the value of the flags_without_count option

Always prints ""

@copilot

Modify tests so that they show both behaviour for this flag (true and false)

As always document the new option, in the README and in the default configuration file

Metadata

Metadata

Assignees

Labels

improvementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions