File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 33{0} .== =o={1}oGGGGGG{0}o=oo=o{1}GGGGGGG{0}G=o= oo-
44{0} -o= oo={1}G .=GGGGG{0}o=o={1}= .=GGGGG{0}=ooo o=-
55{0} .-=oo={1}o==oGGGGG{0}=oo={1}oooGGGGGo{0}=oooo.
6- {0} -ooooo= {1}oooooo{0}={2}. .{0}={1}=ooo=={0}oooooo-
6+ {0} -ooooo{1}= oooooo{0}={2}. .{0}={1}=ooo=={0}oooooo-
77{0} -ooooooooooo{2}====_===={0}ooooooooooo=
88{0} -oooooooooooo{2}=={1}#{0}.{1}#{2}=={0}ooooooooooooo
99{0} -ooooooooooooo={1}#{0}.{1}#{0}=oooooooooooooo
Original file line number Diff line number Diff line change @@ -133,7 +133,15 @@ impl Cli {
133133 . takes_value ( true )
134134 . max_values ( 1 )
135135 . default_value ( "3" )
136- . help ( "NUM of authors to be shown." ) ,
136+ . help ( "NUM of authors to be shown." )
137+ . validator (
138+ |t| {
139+ t. parse :: < u32 > ( )
140+ . map_err ( |_t| "must be a number" )
141+ . map ( |_t| ( ) )
142+ . map_err ( |e| e. to_string ( ) )
143+ } ,
144+ )
137145 )
138146 . arg (
139147 Arg :: with_name ( "exclude" )
You can’t perform that action at this time.
0 commit comments