[parted-devel] mktable alias

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Tue Nov 28 13:12:27 CET 2006


> >   str_list_create ( _("mklabel,mktable      LABEL-TYPE create a new disklabel "
> >
> > So users actually see the alias.
>
> I like this.

Done. Please find it enclosed.

Happy hacking,
Debarshi
-- 
I only work when I am not doing any assignments.
-------------- next part --------------
From aa219c7296868e7ac0c078488373be7ab7dcde1e Mon Sep 17 00:00:00 2001
From: Debarshi Ray <rishi at gnu.org>
Date: Tue, 28 Nov 2006 23:15:00 +0530
Subject: Make mktable aliased to mklabel.

---
 parted/parted.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/parted/parted.c b/parted/parted.c
index 2c8bdd3..9caf516 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1931,10 +1931,10 @@ NULL),
                 NULL, 1));
 
         command_register (commands, command_create (
-                str_list_create_unique ("mklabel", _("mklabel"), NULL),
+                str_list_create_unique ("mklabel", _("mklabel"), "mktable", _("mktable"), NULL),
                 do_mklabel,
                 str_list_create (
-_("mklabel LABEL-TYPE                       create a new disklabel "
+_("mklabel,mktable LABEL-TYPE               create a new disklabel "
   "(partition table)"),
 NULL),
                 str_list_create (label_type_msg, NULL), 1));
@@ -1999,7 +1999,7 @@ _("Without arguments, print displays the
 "argument, information about free space will be displayed otherwise if a\n"
 "partition number is given, then more detailed information is displayed\n"
 "about that partition. If the 'all' argument is passed instead, partition\n"
-"information for all devices will be displayed.\n"),
+"information for all devices will be displayed."),
 NULL), 1));
 
 command_register (commands, command_create (
-- 
1.4.2.4


More information about the parted-devel mailing list