From 20e7d270d9cdc3126fa159ccd2870f8e24d7d0c8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 8 Dec 2012 15:46:27 -0500 Subject: Improve the help messages for librechroot and libremakepkg --- src/chroot-tools/librechroot | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'src/chroot-tools/librechroot') diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 0770ad6..cacdfcd 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -43,25 +43,28 @@ usage() { echo "Usage: $cmd [OPTIONS] " echo 'Interacts with a chroot.' echo '' - echo "The default CHROOT is \`${CHROOT}'." + echo 'This command will make the following configuration changes in' + echo 'the chroot:' + echo " - overwrite \`/etc/libretools.d/chroot.conf'" + echo " - overwrite \`/etc/pacman.d/mirrorlist'" + echo " - set \`CacheDir' in \`/etc/pacman.conf'" echo '' echo 'Options:' echo ' Settings:' - echo " -n Use this chroot instead of \`$CHROOT'" - echo ' -l Use this as the chroot copy instead of basing it' - echo ' on the username' - echo ' -N Disable networking in the chroot' + echo " -n Use this chroot instead of \`$CHROOT'" + echo " -l Use this chroot copy instead \`$CHROOTCOPY'" + echo ' -N Disable networking in the chroot' echo '' echo ' Modes: (the last mode given will be used)' - echo ' -C Clean /repo in the chroot' - echo ' -c Clean the packages installed in the chroot' - echo ' -I Install the package FILE into the chroot' - echo ' -i Install the package PKG from repos into the chroot' - echo ' -m Make sure the chroot exists; do nothing else' - echo ' -r Run CMD in the chroot' - echo " -s Sync the copy with the 'root' copy" - echo ' -u Update the chroot' - echo ' -h Print this message' + echo ' -C Clean /repo in the chroot' + echo ' -c Clean the packages installed in the chroot' + echo ' -I Install the package FILE into the chroot' + echo ' -i Install the package PKG from repos into the chroot' + echo ' -m Make sure the chroot exists; do nothing else' + echo ' -r Run CMD in the chroot' + echo " -s Sync the copy with the \`root' copy" + echo ' -u Update the chroot' + echo ' -h Show this message' } main() { -- cgit v1.2.2