Skip to content

arg removes all double dashes from the arguments, even after the first one #229

Description

@cjhardekopf

I would expect double dashes ("--") after the first one to be passed through as an argument. A simple test script:

#!/usr/bin/env -S usage bash
#USAGE min_usage_version "2"
#USAGE name "double_dash test"
#USAGE about "Test double dash behavior"
#USAGE arg "<args>..." help="Args" double_dash="automatic"

# echo args
echo "$usage_args"

The behavior appears the same no matter what double_dash behavior is specified. For example:

$ ./double_dash_test -- hello -- goodbye --
hello goodbye

I expect to see hello -- goodbye -- since I would expect everything after the first double dash to be treated as an argument.

$ usage --version
2.0.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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