use crate::{ArgHelp, NULL_PTR};
pub struct ParserOptions<'a> {
pub subcommand: &'a str,
pub help_rules: &'a [ArgHelp<'a>],
pub ignore_help: bool,
pub strict: bool,
pub strict_level: Option<usize>,
pub collect_args: Option<&'a mut Vec<String>>,
pub passthrough: bool,
pub require_args: bool,
}
impl<'a> Default for ParserOptions<'a> {
fn default() -> Self {
Self {
subcommand: NULL_PTR,
help_rules: &[],
ignore_help: false,
strict: true,
strict_level: None,
collect_args: None,
passthrough: false,
require_args: false,
}
}
}