File tree Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Expand file tree Collapse file tree 3 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ pub mod resource {
186
186
<Self as Resource >:: Value : Sized ,
187
187
Self : Sized ;
188
188
189
+ /* fn print_help(&self) -> String; */
190
+
189
191
#[ cfg( test) ]
190
192
fn parse_argv_from (
191
193
& self ,
Original file line number Diff line number Diff line change @@ -82,6 +82,33 @@ pub mod argv {
82
82
impl error:: Error for OutputTypeError { }
83
83
84
84
impl ArgvResource for OutputFlagsResource {
85
+ /* fn print_help(&self) -> String { */
86
+ /* r#" */
87
+ /* Output flags (OUTPUT-FLAGS): Where and how to write the generated zip archive. */
88
+
89
+ /* If not specified, output is written to stdout. */
90
+
91
+ /* OUTPUT-FLAGS = [--append] --output-file <file> */
92
+ /* = --stdout */
93
+
94
+ /* -o, --output-file <file> */
95
+ /* Output zip file path to write. */
96
+
97
+ /* The output file is truncated if it already exists, unless --append is */
98
+ /* provided. */
99
+
100
+ /* --append */
101
+ /* If an output path is provided with -o, open it as an existing zip */
102
+ /* archive and append to it. */
103
+
104
+ /* If the output path does not already exist, no error is produced, and */
105
+ /* a new zip file is created at the given path. */
106
+
107
+ /* --stdout */
108
+ /* Allow writing output to stdout even if stdout is a tty. */
109
+ /* "# */
110
+ /* } */
111
+
85
112
type ArgvParseError = OutputTypeError ;
86
113
fn parse_argv (
87
114
& self ,
Original file line number Diff line number Diff line change @@ -40,7 +40,24 @@ pub mod printer {
40
40
}
41
41
}
42
42
43
- pub trait HelpSection { }
43
+ pub trait HelpCase {
44
+ fn value ( & self ) -> & str ;
45
+ fn description ( & self ) -> String ;
46
+ fn extended_description_with_caveats_and_defaults ( & self ) -> Option < String > ;
47
+ }
48
+
49
+ pub trait HelpSection {
50
+ fn name ( & self ) -> & str ;
51
+ fn id ( & self ) -> & str ;
52
+ fn description ( & self ) -> Option < String > ;
53
+ fn extended_description_with_caveats_and_defaults ( & self ) -> Option < String > ;
54
+ fn cases ( & self ) -> Vec < Box < dyn HelpCase > > ;
55
+ fn post ( & self ) -> Option < String > ;
56
+ }
57
+
58
+ pub struct FlagsSection { }
59
+
60
+ pub struct StringPattern { }
44
61
45
62
pub enum HelpVerbosity {
46
63
NameOnly ,
You can’t perform that action at this time.
0 commit comments