The command mkpart can make new partition just with the start and end. And make PART-TYPES an optional argument.
Signed-off-by: Wang Dong <[email protected]> Reviewed-by: Andre Wild <[email protected]>¶¶ Signed-off-by: Hendrik Brueckner <[email protected]>¶ --- doc/pt_BR-parted.8 | 2 +- parted/parted.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/pt_BR-parted.8 b/doc/pt_BR-parted.8 index 03168a0..fde4b69 100644 --- a/doc/pt_BR-parted.8 +++ b/doc/pt_BR-parted.8 @@ -133,7 +133,7 @@ cria um novo disklabel (tabela de parti \fIlabel-type\fP pode ser "bsd", "gpt", "loop", "mac", "mips", "msdos", "pc98" ou "sun" .TP -.\" .B mkpart \fIpart-type\fP \fI[fs-type]\fP \fIstart\fP \fIend\fP +.\" .B mkpart \fI[part-type\fP \fIfs-type \fIname]\fp \fIstart\fP \fIend\fP .\" make a \fIpart-type\fP partition with filesystem \fIfs-type\fP (if specified), .\" beginning at \fIstart\fP and ending at \fIend\fP (in megabytes). .\" \fIpart-type\fP should be one of "primary", "logical" or "extended" diff --git a/parted/parted.c b/parted/parted.c index 0636e58..6cc9eb4 100644 --- a/parted/parted.c +++ b/parted/parted.c @@ -1993,7 +1993,7 @@ NULL), str_list_create_unique ("mkpart", _("mkpart"), NULL), do_mkpart, str_list_create ( -_("mkpart PART-TYPE [FS-TYPE] START END make a partition"), +_("mkpart [PART-TYPE FS-TYPE NAME] START END make a partition"), NULL), str_list_create (_(part_type_msg), _(mkpart_fs_type_msg), -- 2.8.4

