def _get_n_args(self, args, example, n):
if len(args) != n:<EOL><INDENT>msg = (<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>).format(n, get_prog(), example)<EOL>raise PipError(msg)<EOL><DEDENT>if n == <NUM_LIT:1>:<EOL><INDENT>return args[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return args<EOL><DEDENT>
Helper to make sure the command got the right number of arguments