#NEWLINE# def test_nargs_star_ordering( runner ) : #NEWLINE# #INDENT# @ click . command ( ) #NEWLINE# @ click . argument ( 'a' , nargs = ( - 1 ) ) #NEWLINE# @ click . argument ( 'b' ) #NEWLINE# @ click . argument ( 'c' ) #NEWLINE# def cmd( a , b , c ) : #NEWLINE# #INDENT# for arg in ( a , b , c ) : #NEWLINE# #INDENT# click . echo ( arg ) #NEWLINE# #UNINDENT# #UNINDENT# result = runner . invoke ( cmd , [ 'a' , 'b' , 'c' ] ) #NEWLINE# assert ( result . output . splitlines ( ) == [ ( ( PY2 and "(u'a',)" ) or "('a',)" ) , 'b' , 'c' ] )