#537 rpkg container-build --repo-url=A --repo-url=B ignores A
Closed: Fixed 2 years ago by onosek. Opened 3 years ago by otaylor.

Various arguments for container-build are done as nargs='+' or nargs='*' which means they are meant to be:

 --arg1 A B --arg2 A B

But if you think that this works like most other CLI's (including koji-container-build) and repeated arguments are accumulated, you are confused since:

 --arg1=A --arg1=B

Just gives you B. One of the following should be done:

  • accumulate all arguments together (does store=append nargs=+ does this? haven't tested)
  • error out if one of these arguments is specified multiple times.

Thanks for filing this. I've lost count of the number of times I have gotten this wrong.

Metadata Update from @onosek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Metadata Update from @onosek:
- Issue set to the milestone: 1.63

2 years ago

Login to comment on this ticket.

Metadata