diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-14 18:27:06 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-14 18:27:06 +0800 |
| commit | 16bef0a5289586a1999c85a746aaea766f260774 (patch) | |
| tree | 9ff039d18dc24f5c4baa313fb93be63cdf4ebbbd | |
| parent | 8c46a255f9987f06fb4f60d9c576d8694dbc80d5 (diff) | |
feat(style): make ParserStyle fields public
| -rw-r--r-- | mingling_picker/src/parselib/style.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mingling_picker/src/parselib/style.rs b/mingling_picker/src/parselib/style.rs index 770ef05..3ce12f7 100644 --- a/mingling_picker/src/parselib/style.rs +++ b/mingling_picker/src/parselib/style.rs @@ -5,25 +5,25 @@ use std::sync::atomic::{AtomicBool, Ordering}; #[derive(Clone, Copy, PartialEq, Eq)] pub struct ParserStyle<'a> { /// End-of-options marker (e.g., `--`) - end_of_options: &'a str, + pub end_of_options: &'a str, /// Prefix for long options (e.g., `--` or `/`) - long_prefix: &'a str, + pub long_prefix: &'a str, /// Prefix for short options (e.g., `-` or `/`) - short_prefix: &'a str, + pub short_prefix: &'a str, /// Prefix for combined short flags (e.g., `-abc`) - combine_prefix: &'a str, + pub combine_prefix: &'a str, /// Separator between name and value (e.g., `=` or `:`) - value_separator: char, + pub value_separator: char, /// Whether option names are case-sensitive - case_sensitive: bool, + pub case_sensitive: bool, /// Whether combining short flags is allowed (e.g., `-abc` for `-a -b -c`) - allow_combine: bool, + pub allow_combine: bool, } /// Unix-like style (e.g., `--verbose`, `-v`, `--name=value`) |
