Skip to content

Commit

Permalink
feat(help): Allow access to current Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 19, 2023
1 parent b99c50f commit 6d5aaae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clap_builder/src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3364,7 +3364,9 @@ impl Command {
}
}

pub(crate) fn get_styles(&self) -> &Styles {
/// Return the current `Styles` for the `Command`
#[inline]
pub fn get_styles(&self) -> &Styles {
self.app_ext.get().unwrap_or_default()
}

Expand Down

0 comments on commit 6d5aaae

Please sign in to comment.