mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 12:57:56 +02:00
mktplinkfw: fix help string, and remove duplicated option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20067 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5d9279efce
commit
e1065cc197
@ -218,7 +218,8 @@ static void usage(int status)
|
|||||||
" -k <file> read kernel image from the file <file>\n"
|
" -k <file> read kernel image from the file <file>\n"
|
||||||
" -r <file> read rootfs image from the file <file>\n"
|
" -r <file> read rootfs image from the file <file>\n"
|
||||||
" -o <file> write output to the file <file>\n"
|
" -o <file> write output to the file <file>\n"
|
||||||
" -v <version> set image version to <version>\n"
|
" -N <vendor> set image vendor to <vendor>\n"
|
||||||
|
" -V <version> set image version to <version>\n"
|
||||||
" -h show this screen\n"
|
" -h show this screen\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -454,7 +455,7 @@ int main(int argc, char *argv[])
|
|||||||
while ( 1 ) {
|
while ( 1 ) {
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
c = getopt(argc, argv, "B:V:N:ck:r:o:v:h:");
|
c = getopt(argc, argv, "B:V:N:ck:r:o:h");
|
||||||
if (c == -1)
|
if (c == -1)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -480,9 +481,6 @@ int main(int argc, char *argv[])
|
|||||||
case 'o':
|
case 'o':
|
||||||
ofname = optarg;
|
ofname = optarg;
|
||||||
break;
|
break;
|
||||||
case 'v':
|
|
||||||
version = optarg;
|
|
||||||
break;
|
|
||||||
case 'h':
|
case 'h':
|
||||||
usage(EXIT_SUCCESS);
|
usage(EXIT_SUCCESS);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user