Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@amterp
Copy link
Owner

@amterp amterp commented Sep 4, 2025

spf13/pflag is great, but Rad has been straining it for quite some time.
It's too opinionated about POSIX. For Rad, we'd like to allow users to
breach POSIX compliance at their discretion, such as having varargs to
their scripts. pflag does not support this.

Hence the implementation of Ra (https://github.com/amterp/ra). This
commit migrates Rad entirely from pflag to Ra. This is quite a big lift,
and changes some nuanced behaviors of Rad. I will no doubt uncover
many-a-bug from this point onwards, so will be an ongoing thing.

Ra is built on principles we've already been using in Rad, for example
typed args, dual-nature of args (positional/flag), etc, but the idea is
that it can support more, which we will later leverage in Rad e.g. var
args.

amterp added 2 commits August 9, 2025 11:45
spf13/pflag is great, but Rad has been straining it for quite some time.
It's too opinionated about POSIX. For Rad, we'd like to allow users to
breach POSIX compliance at their discretion, such as having varargs to
their scripts. pflag does not support this.

Hence the implementation of Ra (https://github.com/amterp/ra). This
commit migrates Rad entirely from pflag to Ra. This is quite a big lift,
and changes some nuanced behaviors of Rad. I will no doubt uncover
many-a-bug from this point onwards, so will be an ongoing thing.

Ra is built on principles we've already been using in Rad, for example
typed args, dual-nature of args (positional/flag), etc, but the idea is
that it can support more, which we will later leverage in Rad e.g. var
args.
@amterp amterp merged commit 043d104 into main Sep 4, 2025
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.

2 participants