diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-06-09 17:00:21 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-06-09 17:00:21 +0800 |
| commit | bcdd642b269a3342a07d625139c647b0501fa7c7 (patch) | |
| tree | c04c1f404bd4ba11819a2a87f8f65014105014cf /CHANGELOG.md | |
| parent | 87d5d6a3b83b3214477874c1734fca42a6c80288 (diff) | |
Add get_args method to Program
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f43976..957952d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -74,6 +74,8 @@ fn render_entry_show(_args: EntryShow, res: &mut LazyRes<ResLargeData>) { } ``` +5. **\[core\]** Added `Program::get_args(&self)` method to expose the program's command-line arguments as a `&[String]` slice, providing public read access to the internal `args` field. + #### **BREAKING CHANGES** (API CHANGES): 1. **\[core\]** Changed the signature of `ProgramSetup::setup` from `fn setup(&mut self, program: &mut Program<C>) -> S` to `fn setup(self, program: &mut Program<C>)`, consuming `self` instead of taking a mutable reference. Correspondingly, `Program::with_setup` now accepts `S` by value (`&mut self, setup: S`) instead of by mutable reference (`&mut self, setup: &mut S`). |
