Sitelet https://github.com/aurutils/aurutils/pull/1263
Skip to content

Options.pm: add dump_options and enable --dump-options in Perl scripts - #1263

Merged
AladW merged 1 commit into
aurutils:masterfrom
Strykar:perl-dump-options
Apr 19, 2026
Merged

AladW merged 1 commit into
aurutils:masterfrom
Strykar:perl-dump-options

Conversation

@Strykar

@Strykar Strykar commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

The five Perl-based aur- scripts (depends, search, query, format, repo-parse) had no --dump-options support, so their completions were hardcoded as empty in command_opts.sh.

Add a dump_options() helper to AUR::Options that parses the GetOptions spec and prints flags in the same format the bash scripts already use. Each Perl script now accepts --dump-options and passes its spec through the helper.

Update command_opts.sh to include them in have_optdump. Only aur-graph (gawk, no flags) remains in no_optdump.

Co-Authored-By: Claude Opus

The five Perl-based aur scripts (depends, search, query, format,
repo-parse) had no --dump-options support, so their completions
were hardcoded as empty in command_opts.sh.

Add a dump_options() helper to AUR::Options that parses the
GetOptions spec and prints flags in the same format the bash
scripts already use. Each Perl script now accepts --dump-options
and passes its spec through the helper.

Update command_opts.sh to include them in have_optdump. Only
aur-graph (gawk, no flags) remains in no_optdump.

Co-Authored-By: Claude Opus
@AladW

AladW commented Apr 19, 2026

Copy link
Copy Markdown
Member

LGTM

@AladW AladW added this to the 21 milestone Apr 19, 2026
@AladW
AladW merged commit 3b9594e into aurutils:master Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants