diff options
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-x | src/chroot-tools/librechroot | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 9367ef8..2462f4b 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -216,6 +216,8 @@ readonly DEF_PACMANCONF_DIR=/usr/share/pacman/defaults usage() { eval "$(calculate_directories)" + local mount_msg="$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')" + print "Usage: %s [OPTIONS] COMMAND [ARGS...]" "${0##*/}" echo print 'Interacts with a libre "archroot" (similarly to `arch-chroot`).' @@ -287,20 +289,18 @@ usage() { prose 'Creating/deleting/synchronizing a copy, can be relatively slow; but can be very fast, if $CHROOTDIR is on a btrfs partition.' echo - flag 'Options:' \ - "-n <$(_ NAME)>" 'Name of the chroot to use' \ - "-l <$(_ COPY)>" 'Name of, or absolute path to, the copy to use' \ - "-C <$(_ FILE)>" 'Copy this file to chroot as: `/etc/pacman.conf` - This option is mutually exclusive with -A.' \ - "-M <$(_ FILE)>" 'Copy this file to chroot as: `/etc/makepkg.conf` - This option is mutually exclusive with -A.' \ - "-A <$(_ CARCH)>" 'Specify the architecture of a new `root` seed. - This option is mutually exclusive with -C and -M.' \ - "-N" 'Disable networking in the chroot' \ - "-w <$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')>" 'Bind mount a file or - directory, read/write' \ - "-r <$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')>" 'Bind mount a file or - directory, read-only' + flag 'Options:' \ + "-n <$(_ NAME)>" 'Name of the chroot to use' \ + "-l <$(_ COPY)>" 'Name of, or absolute path to, the copy to use' \ + "-C <$(_ FILE)>" 'Copy this file to chroot as: `/etc/pacman.conf` + This option is mutually exclusive with -A.' \ + "-M <$(_ FILE)>" 'Copy this file to chroot as: `/etc/makepkg.conf` + This option is mutually exclusive with -A.' \ + "-A <$(_ CARCH)>" 'Specify the architecture of a new `root` seed. + This option is mutually exclusive with -C and -M.' \ + "-N" 'Disable networking in the chroot' \ + "-w <${mount_msg}>" 'Bind mount a file or directory, read/write' \ + "-r <${mount_msg}>" 'Bind mount a file or directory, read-only' echo flag 'Commands (create/copy/delete):' \ 'make' 'Create a `root` seed and working copy' \ |