1 #[doc(hidden)]
2 #[allow(missing_debug_implementations)]
3 #[derive(Default, Clone)]
4 pub struct AppMeta<'b> {
5     pub name: String,
6     pub bin_name: Option<String>,
7     pub author: Option<&'b str>,
8     pub version: Option<&'b str>,
9     pub long_version: Option<&'b str>,
10     pub about: Option<&'b str>,
11     pub long_about: Option<&'b str>,
12     pub more_help: Option<&'b str>,
13     pub pre_help: Option<&'b str>,
14     pub aliases: Option<Vec<(&'b str, bool)>>, // (name, visible)
15     pub usage_str: Option<&'b str>,
16     pub usage: Option<String>,
17     pub help_str: Option<&'b str>,
18     pub disp_ord: usize,
19     pub term_w: Option<usize>,
20     pub max_w: Option<usize>,
21     pub template: Option<&'b str>,
22 }
23 
24 impl<'b> AppMeta<'b> {
new() -> Self25     pub fn new() -> Self {
26         Default::default()
27     }
with_name(s: String) -> Self28     pub fn with_name(s: String) -> Self {
29         AppMeta {
30             name: s,
31             disp_ord: 999,
32             ..Default::default()
33         }
34     }
35 }
36