Skip to content

Commit

Permalink
docs(AppSettings): clarifies that AppSettings do not propagate
Browse files Browse the repository at this point in the history
Closes #429
  • Loading branch information
kbknapp committed Feb 19, 2016
1 parent 60c0424 commit 3c8db0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/settings.rs
Expand Up @@ -62,6 +62,9 @@ impl AppFlags {
}

/// Application level settings, which affect how `App` operates
///
/// **NOTE:** When these settings are used, they apply only to current command, and are *not*
/// propagated down or up through child or parent subcommands
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum AppSettings {
/// Allows subcommands to override all requirements of the parent command. For example
Expand Down Expand Up @@ -376,7 +379,8 @@ pub enum AppSettings {
/// assert_eq!(m.value_of_os("arg").unwrap().as_bytes(), &[0xe9]);
/// ```
AllowInvalidUtf8,
/// Specifies that leading hyphens are allowed in argument values, such as `-10`
/// Specifies that leading hyphens are allowed in argument *values*, such as negative numbers
/// `-10`
///
/// **NOTE:** This can only be set application wide and not on a per argument basis.
///
Expand Down

0 comments on commit 3c8db0e

Please sign in to comment.