Skip to content

refactor(builtins): migrate base64 from manual arg parsing to ArgParser#890

Open
chaliy wants to merge 1 commit intomainfrom
refactor/issue-880-argparser-base64
Open

refactor(builtins): migrate base64 from manual arg parsing to ArgParser#890
chaliy wants to merge 1 commit intomainfrom
refactor/issue-880-argparser-base64

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Mar 27, 2026

Summary

  • Replace manual while i < ctx.args.len() index management with ArgParser API in the base64 builtin
  • Uses flag_any, flag_value, positional, and is_flag for cleaner argument handling
  • Net -2 lines, clearer intent

Test plan

  • All 6 existing base64 unit tests pass
  • cargo clippy clean
  • cargo fmt --check clean

Part of #880

Replace manual `while i < ctx.args.len()` index management with
ArgParser API in the base64 builtin. Uses flag_any, flag_value,
positional, and is_flag for cleaner argument handling.

Part of #880
@chaliy chaliy force-pushed the refactor/issue-880-argparser-base64 branch from 7f1919b to 16e1c5c Compare March 28, 2026 00:11
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