Bug 8136

Summary: ubiupdatevol: '-t' parameter not usable (invalid command line parsing)
Product: Busybox Reporter: Marko v. Oppen <marko>
Component: Standard ComplianceAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.21.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Marko v. Oppen 2015-05-28 06:52:32 UTC
ubiupdatevol should take the '-t' option without an additional argument like the help message states correctly. But when using it in that matter busybox gives an error message.

root@OpenWrt:/# ubiupdatevol /dev/ubi1_0 -t
ubiupdatevol: option requires an argument -- 't'
BusyBox v1.22.1 (2015-05-27 14:11:07 CEST) multi-call binary.

Usage: ubiupdatevol UBI_DEVICE [-t | [-s SIZE] IMG_FILE]

Update UBI volume

        -t      Truncate to zero size
        -s SIZE Size in bytes to resize to


root@OpenWrt:/# ubiupdatevol -t /dev/ubi1_0
BusyBox v1.22.1 (2015-05-27 14:11:07 CEST) multi-call binary.

Usage: ubiupdatevol UBI_DEVICE [-t | [-s SIZE] IMG_FILE]

Update UBI volume

        -t      Truncate to zero size
        -s SIZE Size in bytes to resize to