Skip to content

Feature/better arg parsing#130

Merged
napalu merged 2 commits into
mainfrom
feature/better_arg_parsing
Apr 1, 2026
Merged

Feature/better arg parsing#130
napalu merged 2 commits into
mainfrom
feature/better_arg_parsing

Conversation

@napalu
Copy link
Copy Markdown
Owner

@napalu napalu commented Apr 1, 2026

No description provided.

napalu added 2 commits April 1, 2026 16:23
…mands

- Refactor argument handling to support "greedy" commands that capture unbound positionals.
- Improve positional and flag parsing logic to ensure robustness.
- Deprecate `HelpStyleGroupedClean` in favor of `HelpStyleGrouped` with clean formatting as default.
- Update internationalization (i18n) messages for improved validation feedback and consistency across locales.
- Improve description alignment and formatting in help outputs.
- Add utility functions for building command/subcommand names with positionals.
- Update tests to reflect new command and help output behavior.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 54.48276% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.51%. Comparing base (b3a05c4) to head (21591c8).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
v2/goopt_internal.go 61.17% 30 Missing and 3 partials ⚠️
v2/validation/parser.go 41.17% 10 Missing ⚠️
v2/goopt_internal_positionals.go 0.00% 7 Missing and 1 partial ⚠️
v2/internal/parse/tag.go 0.00% 5 Missing ⚠️
v2/renderer.go 0.00% 4 Missing ⚠️
v2/command_config_funcs.go 0.00% 3 Missing ⚠️
v2/goopt.go 66.66% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
- Coverage   79.61%   79.51%   -0.10%     
==========================================
  Files          88       88              
  Lines       13247    13329      +82     
==========================================
+ Hits        10546    10599      +53     
- Misses       1978     2004      +26     
- Partials      723      726       +3     
Flag Coverage Δ
v1 74.74% <ø> (ø)
v2 82.13% <54.48%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
v2/help_parser.go 74.19% <100.00%> (+0.61%) ⬆️
v2/types/common.go 88.88% <ø> (ø)
v2/command_config_funcs.go 89.79% <0.00%> (-5.86%) ⬇️
v2/goopt.go 87.39% <66.66%> (-0.07%) ⬇️
v2/renderer.go 78.57% <0.00%> (-2.32%) ⬇️
v2/internal/parse/tag.go 70.89% <0.00%> (-2.75%) ⬇️
v2/goopt_internal_positionals.go 93.45% <0.00%> (-3.63%) ⬇️
v2/validation/parser.go 61.15% <41.17%> (-1.31%) ⬇️
v2/goopt_internal.go 75.01% <61.17%> (+0.43%) ⬆️
Files with missing lines Coverage Δ
v2/help_parser.go 74.19% <100.00%> (+0.61%) ⬆️
v2/types/common.go 88.88% <ø> (ø)
v2/command_config_funcs.go 89.79% <0.00%> (-5.86%) ⬇️
v2/goopt.go 87.39% <66.66%> (-0.07%) ⬇️
v2/renderer.go 78.57% <0.00%> (-2.32%) ⬇️
v2/internal/parse/tag.go 70.89% <0.00%> (-2.75%) ⬇️
v2/goopt_internal_positionals.go 93.45% <0.00%> (-3.63%) ⬇️
v2/validation/parser.go 61.15% <41.17%> (-1.31%) ⬇️
v2/goopt_internal.go 75.01% <61.17%> (+0.43%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@napalu napalu merged commit 8b6f724 into main Apr 1, 2026
12 of 13 checks passed
@napalu napalu deleted the feature/better_arg_parsing branch April 2, 2026 08:58
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