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 /mingling_core/src | |
| parent | 87d5d6a3b83b3214477874c1734fca42a6c80288 (diff) | |
Add get_args method to Program
Diffstat (limited to 'mingling_core/src')
| -rw-r--r-- | mingling_core/src/program.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs index d14c366..12dc9cc 100644 --- a/mingling_core/src/program.rs +++ b/mingling_core/src/program.rs @@ -124,6 +124,12 @@ where .unwrap() } + /// Returns a reference to the program's command-line arguments. + #[must_use] + pub fn get_args(&self) -> &[String] { + &self.args + } + /// Get all registered dispatcher names from the program #[must_use] pub fn get_nodes( |
