Dot the i's: multiple devices can be specified, so the usage should

have ellipsis following the device.
This commit is contained in:
marcel 2005-09-01 02:42:52 +00:00
parent 9b54632324
commit 814918164b
3 changed files with 7 additions and 5 deletions

View File

@ -48,7 +48,7 @@ usage_add(void)
{
fprintf(stderr,
"usage: %s [-b lba] [-i index] [-s lba] [-t uuid] device\n",
"usage: %s [-b lba] [-i index] [-s lba] [-t uuid] device ...\n",
getprogname());
exit(1);
}

View File

@ -59,7 +59,7 @@ usage_migrate(void)
{
fprintf(stderr,
"usage: %s [-fs] device\n", getprogname());
"usage: %s [-fs] device ...\n", getprogname());
exit(1);
}

View File

@ -49,8 +49,8 @@ usage_remove(void)
{
fprintf(stderr,
"usage: %s -a device\n"
" %s [-b lba] [-i index] [-s lba] [-t uuid] device\n",
"usage: %s -a device ...\n"
" %s [-b lba] [-i index] [-s lba] [-t uuid] device ...\n",
getprogname(), getprogname());
exit(1);
}
@ -108,7 +108,7 @@ rem(int fd)
!uuid_equal(&type, &uuid, NULL))
continue;
/* Remove the entry by clearing the partition type. */
/* Remove the primary entry by clearing the partition type. */
uuid_create_nil(&ent->ent_type, NULL);
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
@ -122,6 +122,8 @@ rem(int fd)
hdr = tpg->map_data;
ent = (void*)((char*)lbt->map_data + i *
le32toh(hdr->hdr_entsz));
/* Remove the secundary entry. */
uuid_create_nil(&ent->ent_type, NULL);
hdr->hdr_crc_table = htole32(crc32(lbt->map_data,