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 {
186186 <Self as Resource >:: Value : Sized ,
187187 Self : Sized ;
188188
189+ /* fn print_help(&self) -> String; */
190+
189191 #[ cfg( test) ]
190192 fn parse_argv_from (
191193 & self ,
Original file line number Diff line number Diff line change @@ -82,6 +82,33 @@ pub mod argv {
8282 impl error:: Error for OutputTypeError { }
8383
8484 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+
85112 type ArgvParseError = OutputTypeError ;
86113 fn parse_argv (
87114 & self ,
Original file line number Diff line number Diff line change @@ -40,7 +40,24 @@ pub mod printer {
4040 }
4141}
4242
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 { }
4461
4562pub enum HelpVerbosity {
4663 NameOnly ,
You can’t perform that action at this time.
0 commit comments