[parted-devel] mktable alias

Debarshi 'Rishi' Ray debarshi.ray at gmail.com
Tue Nov 28 07:20:59 CET 2006


Here is a very simple way to implement the mktable alias. However the
name 'mktable' does not appear in the 'help' list. That would require
a separate entry in 'commands' using 'command_register' and
'command_create'.

What do you think? Is this ok?

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

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

diff --git a/parted/parted.c b/parted/parted.c
index fd027ef..7a06555 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1931,7 +1931,7 @@ 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 "
-- 
1.4.2.4


More information about the parted-devel mailing list