Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation to disallow required args before optional #533

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

DannyBen
Copy link
Owner

@DannyBen DannyBen commented Jul 12, 2024

This PR adds a validation to prevent the following usage pattern:

cli [OPTIONAL] REQUIRED

which is represented by this bashly.yml:

args:
- name: optional
- name: required
  required: true

since a CLI generated with this pattern will not function properly.

@DannyBen DannyBen merged commit 868b2d7 into master Jul 12, 2024
8 checks passed
@DannyBen DannyBen deleted the add/arg-order-validation branch July 12, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant