prepare-upload does not provide usage help when a subcommand is not specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Triaged
|
Medium
|
Unassigned |
Bug Description
Don't know yet what it is, but I found repro:
$ git ubuntu clone open-vm-tools
$ cd open-vm-tools/
$ git checkout -b test
$ dch -i "test"
$ git commit -s -m "changelog: test" debian/changelog
$ git ubuntu prepare-upload
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
args = parser.parse_args()
File "/snap/
args, argv = self.parse_
File "/snap/
namespace, args = self._parse_
File "/snap/
stop_index = consume_
File "/snap/
take_
File "/snap/
action(self, namespace, argument_values, option_string)
File "/snap/
subnamespace, arg_strings = parser.
File "/snap/
namespace, args = self._parse_
File "/snap/
', '.join(
TypeError: sequence item 0: expected str instance, NoneType found
Yes this is what I meant by error handling not being good in the beta.
"git ubuntu prepare-upload" requires a further subcommand - "args" or "mangle". You probably want "args"?
The problem here is that argparse crashes instead of providing useful usage text.