Repository navigation
Answer Help in pull-apk.sh Whatever Its Position - #320
Conversation
Count positional arguments apart from the help flag. So a b --help answers help, and only a real third positional is refused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #320 +/- ##
========================================
Coverage 85.89% 85.89%
========================================
Files 3 3
Lines 695 695
========================================
Hits 597 597
Misses 98 98
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
The argument-parsing update supports help flags in any position while preserving rejection of unknown options and excess positional arguments, with no active review issues identified.
No open issues 🎉
What changed in this PR
Updates pull-apk.sh argument parsing so --help and -h work regardless of position while preserving rejection of unknown options and excess positional arguments.
Changes:
- Tracks positional arguments independently from help flags.
- Allows help flags in any argument position.
- Continues rejecting unknown options and more than two positional arguments.
| File | Description |
|---|---|
| easystart/tools/pull-apk.sh | Separates help-flag handling from positional-argument validation. |
Review effort: Lite
Answers a finding from the Copilot round on the promotion in #319.
pull-apk.sh a b --helpwas refused, and named--helpas the unknown argument. The script now counts positional arguments apart from the help flag.--helpor-hin any position answers usage and exits 0.Exercised by hand for each of those cases, and shellcheck and shfmt are clean.
🤖 Generated with Claude Code
Summary by CodeRabbit