mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 22:02:35 +00:00
Auto merge of #904 - mitsuhiko:feature/term-meta-propagation, r=kbknapp
Propagate terminal widths to subcommands This fixes #901
This commit is contained in:
commit
16764bfa27
1 changed files with 2 additions and 0 deletions
|
@ -329,6 +329,8 @@ impl<'a, 'b> Parser<'a, 'b>
|
|||
}
|
||||
sc.p.settings = sc.p.settings | self.g_settings;
|
||||
sc.p.g_settings = sc.p.g_settings | self.g_settings;
|
||||
sc.p.meta.term_w = self.meta.term_w;
|
||||
sc.p.meta.max_w = self.meta.max_w;
|
||||
}
|
||||
sc.p.propogate_settings();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue