28 {0,0,
"",
"",
Arg::None,
"Cölüümn 1 line ı\vColumn 1 line 2\vColumn 1 line 3 \t\vColumn 2 line 2 \tColumn 3 line 1\v\vColumn 3 line 3 "},
33 {0,0,
"",
"",
Arg::None,
"Column 1 line 1 \t\tColumn 3 line 1\n" 34 "Column 1 line 2 \tColumn 2 line 2 \tColumn 3 line 2\n" 35 "Column 1 line 3 \t\tColumn 3 line 3" },
40 {0,0,
"",
"",
Arg::None,
"11 \t21\v22\v23\t 31\nxx" },
48 {0,0,
"",
"",
Arg::None,
"Each table has its own column widths and is not aligned with other tables."},
49 {0,0,
"",
"",
Arg::None,
"Table 1 Column 1 Line 1 \tTable 1 Column 2 Line 1 \tTable 1 Column 3 Line 1\n" 50 "Table 1 Col 1 Line 2 \tTable 1 Col 2 Line 2 \tTable 1 Col 3 Line 2" 52 {0,0,
"",
"",
Arg::None,
"Table 1 Col 1 Line 3 \tTable 1 Col 2 Line 3 \tTable 1 Column 3 Line 3\n" 53 "Table 1 Col 1 Line 4 \tTable 1 Column 2 Line 4 \tTable 1 Column 3 Line 4" 57 {0,0,
"",
"",
Arg::None,
"This is the only line of table 2." },
59 {0,0,
"",
"",
Arg::None,
"This is the very long 1st line of table 3. It is more than 80 characters in length and therefore needs to be wrapped. In fact it is so long that it needs to be wrapped multiple times to fit into a normal 80 characters terminal.\v" 60 "This is the very long 2nd line of table 3. It is more than 80 characters in length and therefore needs to be wrapped. In fact it is so long that it needs to be wrapped multiple times to fit into a normal 80 characters terminal.\v" 61 "This is a reasonably sized line 3 of table 3." 65 " \tTable 4 C 1 L 1 \tTable 4 C 2 L 1 \tTable 4 C 3 L 1\n" 66 "\tTable 4 C 1 L 2 \tTable 4 C 2 L 2 \tTable 4 C 3 L 2" 69 {0,0,
"",
"",
Arg::None,
"This is the only line of table 5"},
71 {0,0,
"",
"",
Arg::None,
"Table 6 C 1 L 1 \tTable 6 C 2 L 1 \tTable 6 C 3 L 1\n" 72 "Table 6 C 1 L 2 \tTable 6 C 2 L 2 \tTable 6 C 3 L 2" 75 {0,0,
"",
"",
Arg::None,
"Table 7 Column 1 Line 1 \tTable 7 Column 2 Line 1 \tTable 7 Column 3 Line 1\n" 76 "Table 7 Column 1 Line 2 \tTable 7 Column 2 Line 2 \tTable 7 Column 3 Line 2\n" 97 {0,0,
"",
"",
Arg::None,
"Good \t| Good \t| This is good." },
98 {0,0,
"",
"",
Arg::None,
"Good \t| This is an overlong cell. \t| This is good." },
99 {0,0,
"",
"",
Arg::None,
"Good \t| Good \t| This is good." },
104 {0,0,
"",
"",
Arg::None,
"This \ttable \thas \ttoo \tmany \tcolumns. \tThe \tlast \tcolumns \tare \tdiscarded." },
105 {0,0,
"",
"",
Arg::None,
"1\t2\t3\t4\t5\t6\t7\t8\t9\t10\t11" },
110 {0,0,
"",
"",
Arg::None,
"1234567890AB\vBA0987654321\tStarts on its own line and is indented somewhat.\vThis one, too." },
115 {0,0,
"",
"",
Arg::None,
"漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字漢字" },
119 void stderr_write(
const char* str,
int size)
121 fwrite(str, size, 1, stderr);
126 void write(
const char* buf,
size_t size)
const 128 ::write(2, buf, size);
132 struct stderr_write_functor
134 void operator()(
const char* buf,
size_t size)
136 ::write(2, buf, size);
142 fputs(
"---------------------------------------------------------------\n",stderr);
144 fputs(
"---------------------------------------------------------------\n",stderr);
146 fputs(
"---------------------------------------------------------------\n",stderr);
148 fputs(
"---------------------------------------------------------------\n",stderr);
150 fputs(
"---------------------------------------------------------------\n",stderr);
152 fputs(
"---------------------------------------------------------------\n",stderr);
154 fputs(
"---------------------------------------------------------------\n",stderr);
158 fputs(
"---------------------------------------------------------------\n",stderr);
159 stderr_write_functor stderr_write_f;
161 fputs(
"---------------------------------------------------------------\n",stderr);
163 fputs(
"---------------------------------------------------------------\n",stderr);
165 fputs(
"---------------------------------------------------------------\n",stderr);
This is the only file required to use The Lean Mean C++ Option Parser. Just #include it and you're se...
static ArgStatus None(const Option &, bool)
For options that don't take an argument: Returns ARG_NONE.
Functions for checking the validity of option arguments.
Describes an option, its help text (usage) and how it should be parsed.
void printUsage(OStream &prn, const Descriptor usage[], int width=80, int last_column_min_percent=50, int last_column_own_line_max_percent=75)
Outputs a nicely formatted usage string with support for multi-column formatting and line-wrapping...