Show More
@@ -370,8 +370,8 b' def fancyopts(args, options, state, gnu=' | |||||
370 | state[name] = boolval |
|
370 | state[name] = boolval | |
371 | else: |
|
371 | else: | |
372 | def abort(s): |
|
372 | def abort(s): | |
373 | raise error.Abort( |
|
373 | raise error.Abort(_('invalid value %r for option %s, %s') | |
374 | _('invalid value %r for option %s, %s') % (val, opt, s)) |
|
374 | % (pycompat.maybebytestr(val), opt, s)) | |
375 | state[name] = defmap[name].newstate(state[name], val, abort) |
|
375 | state[name] = defmap[name].newstate(state[name], val, abort) | |
376 |
|
376 | |||
377 | # return unparsed args |
|
377 | # return unparsed args |
General Comments 0
You need to be logged in to leave comments.
Login now