Skip to content

Reject option tokens as arg values#84

Merged
codeforester merged 1 commit into
mainfrom
bug/77-20260624-arg-parse-option-values
Jun 25, 2026
Merged

Reject option tokens as arg values#84
codeforester merged 1 commit into
mainfrom
bug/77-20260624-arg-parse-option-values

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Treat a value option followed by a registered option token as a missing value.
  • Document the ambiguity rule for option-like values.
  • Add BATS coverage for the registered-option case.

Validation

  • shellcheck --severity=error lib/bash/arg/lib_arg.sh lib/bash/arg/tests/lib_arg.bats
  • bats lib/bash/arg/tests/lib_arg.bats
  • ./tests/validate.sh

Fixes #77

Base automatically changed from bug/76-20260624-file-section-semantics to main June 25, 2026 03:15
@codeforester codeforester force-pushed the bug/77-20260624-arg-parse-option-values branch from 74dea22 to 2c127f4 Compare June 25, 2026 03:25
@codeforester codeforester merged commit 5c4d3bd into main Jun 25, 2026
2 checks passed
@codeforester codeforester deleted the bug/77-20260624-arg-parse-option-values branch June 25, 2026 03:27
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.

Reject option tokens as missing values in arg_parse

1 participant