Skip to content

Make arg_parse outputs transactional#150

Merged
codeforester merged 1 commit into
mainfrom
bug/145-20260711-arg-parse-transactional
Jul 11, 2026
Merged

Make arg_parse outputs transactional#150
codeforester merged 1 commit into
mainfrom
bug/145-20260711-arg-parse-transactional

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Parse option results into local arrays before publishing caller outputs.
  • Preserve caller-owned options and positionals when a late parse error occurs.
  • Add regression coverage for unknown-option and missing-value failures after accepted args.

Fixes #145

Validation

  • bats lib/bash/arg/tests/lib_arg.bats
  • git diff --check
  • ./tests/validate.sh

@codeforester codeforester merged commit b6714c8 into main Jul 11, 2026
2 checks passed
@codeforester codeforester deleted the bug/145-20260711-arg-parse-transactional branch July 11, 2026 13: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.

Make arg_parse output transactional on parse failure

1 participant