equal
deleted
inserted
replaced
266 Returns the unique argument or None if none of them were specified. |
266 Returns the unique argument or None if none of them were specified. |
267 """ |
267 """ |
268 previous = None |
268 previous = None |
269 for x in args: |
269 for x in args: |
270 if opts.get(x): |
270 if opts.get(x): |
|
271 x = x.replace(b'_', b'-') |
271 if previous: |
272 if previous: |
272 raise error.Abort( |
273 raise error.Abort( |
273 _(b'cannot specify both --%s and --%s') % (previous, x) |
274 _(b'cannot specify both --%s and --%s') % (previous, x) |
274 ) |
275 ) |
275 previous = x |
276 previous = x |