[issue546] Refactor out the command line parameter-processing
Tong Sun
bts at bts.grml.org
Sat Oct 11 04:57:02 CEST 2008
Tong Sun <suntong001 at gmail.com> added the comment:
Hi,
For consistancy with future parameters handling maintaince, I need to
alter the help text format like the following, which does not vary too
much from the original:
-------------------------------------------------
grml-debootstrap - wrapper around debootstrap for installing Debian
Usage: grml-debootstrap [options]
Bootstrap options:
-m, --mirror=URL Mirror which should be used for apt-get/aptitude.
-i, --iso=mnt Mountpoint where a Debian ISO is mounted to, for use
instead of fetching packages from a mirror.
-r, --release=name Release of new Debian system (default: stable).
-t, --target=target Target partition (/dev/...) or directory.
-p, --mntpoint=mnt Mountpoint used for mounting the target system.
--debopt=params Extra parameters passed to the debootstrap.
-c, --config=file Use specified configuration file, defaults to
/etc/debootstrap/config
--packages Install packages defined in /etc/debootstrap/packages.
--debconf Pre-seed packages using
/etc/debootstrap/debconf-selections
--keep_src_list Do not overwrite user provided apt sources.list.
--hostname=name Hostname of Debian system.
--password=pwd Use specified password as password for user root.
--bootappend=line Add specified appendline to kernel whilst booting.
--groot=device Root device for usage in grub, corresponds with
$TARGET in grub syntax, like hd0,0 for /dev/sda1.
--grub=device Target for grub installation. Use grub syntax for
specifying, like hd0 for /dev/sda.
--interactive Use interactive mode (frontend).
Other options:
-h, --help Print this usage information and exit.
-v, --version Show summary of options and exit.
Send bugreports to the grml-team: bugs at grml.org || http://grml.org/bugs/
-------------------------------------------------
This is the format that complies with most GNU C/C++ program helps.
What do you think, mika? I altered the order of the parameters as
well. Please comment.
If we can agree upon the content (including the sections, order...
everything but format) of the help text, I can move forward and code
the .clp script.
thanks
----------
messages: 1571, 1572, 1573, 1574, 1575, 1576, 1586
nosy: suntong
priority: feature
status: chatting
title: Refactor out the command line parameter-processing
_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue546>
_____________________________________
More information about the Bugs-changes
mailing list