Skip to content

Multiple Positional Arguments with Defaults #99

Open
@EdwardOst

Description

@EdwardOst

Feature Request: Argbash allows defaults for positional arguments, but in practice it can only be applied to the first positional argument. Many scripts have multiple parameters which have defaults. All such positional optional parameters are necessarily at the end of the signature. Intelligent defaults is a good practice in general. Could this be supported in a future version of Argbash?

Example

# ARG_POSITIONAL_SINGLE([bucket], [s3 bucket to publish the AWS CLI layer], [default_bucket])
# ARG_POSITIONAL_SINGLE([s3_folder], [s3 folder key to publish AWS CLI layer], [awscli])

could support

myscript
myscript mybucket
myscript mybucket my/folder/key

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions