#283 fedpkg request-repo --sl argparsing is broken
Closed: Fixed by onosek. Opened by ignatenkobrain.

⋊> ~/P/f/r/libgit2 on master ⨯ fedpkg request-branch --sl rawhide:2018-12-01 0.27                                                   18:49:03
Could not execute request_branch: The SL "0.27" is in an invalid format

If I put 0.27 before --sl it works. This is definitely a bug in fedpkg.


Argument --sl has nargs=*, hence 0.27 is interpreted as an argument value by argparse. Putting 0.27 before --sl is the right way.

Code is OK, but the behaviour will be described better in command-line help.

Commit 626d8205 fixes this issue

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

Metadata
Related Pull Requests