ubuntu-device-flash needs better argument validation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phablet-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This happens:
ubuntu-device-flash channel=
2014/08/20 14:33:13 Expecting the device to be in the bootloader... waiting
2014/08/20 14:33:13 Device is |mako|
2014/08/20 14:33:13 Flashing version 11 from ubuntu-touch/stable channel and server https:/
2014/08/20 14:33:13 ubuntu-touch/stable is a channel alias to ubuntu-touch/stable
even though the current version in devel-proposed (at the time of filing the bug) was r201. Turns out this is because 'channel=' was specified instead of '--channel='.
The tool should not allow unrecognized arguments or options to be specified - if someone makes a typo then they should hear about it immediately, not get unexpected behaviour from the tool.