Skip to content

Commit

Permalink
refactor: Reduce what Parser visibility we can
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 1, 2022
1 parent 05f8151 commit c638330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ pub(crate) struct Parser<'help, 'app> {
pub(crate) app: &'app mut App<'help>,
pub(crate) required: ChildGraph<Id>,
pub(crate) overridden: RefCell<Vec<Id>>,
pub(crate) seen: Vec<Id>,
pub(crate) cur_idx: Cell<usize>,
seen: Vec<Id>,
cur_idx: Cell<usize>,
/// Index of the previous flag subcommand in a group of flags.
pub(crate) flag_subcmd_at: Option<usize>,
flag_subcmd_at: Option<usize>,
/// Counter indicating the number of items to skip
/// when revisiting the group of flags which includes the flag subcommand.
pub(crate) flag_subcmd_skip: usize,
flag_subcmd_skip: usize,
}

// Initializing Methods
Expand Down

0 comments on commit c638330

Please sign in to comment.