File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
{0} .== =o={1}oGGGGGG{0}o=oo=o{1}GGGGGGG{0}G=o= oo-
4
4
{0} -o= oo={1}G .=GGGGG{0}o=o={1}= .=GGGGG{0}=ooo o=-
5
5
{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-
7
7
{0} -ooooooooooo{2}====_===={0}ooooooooooo=
8
8
{0} -oooooooooooo{2}=={1}#{0}.{1}#{2}=={0}ooooooooooooo
9
9
{0} -ooooooooooooo={1}#{0}.{1}#{0}=oooooooooooooo
Original file line number Diff line number Diff line change @@ -133,7 +133,15 @@ impl Cli {
133
133
. takes_value ( true )
134
134
. max_values ( 1 )
135
135
. 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
+ )
137
145
)
138
146
. arg (
139
147
Arg :: with_name ( "exclude" )
You can’t perform that action at this time.
0 commit comments