From d9588459d035cc3d890892c8a8b3adbd466797e5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 14 Oct 2018 18:24:35 -0400 Subject: libremakepkg: Tidy formatting of usage() flags "What is the alignment of the libremakepkg options section based on?", you may ask. You'll see in the next commit! --- src/chroot-tools/libremakepkg | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/chroot-tools/libremakepkg') diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg index 00eb2e0..013b6d0 100755 --- a/src/chroot-tools/libremakepkg +++ b/src/chroot-tools/libremakepkg @@ -169,18 +169,21 @@ usage() { the documentation there.' echo print 'Options:' - print ' %s options:' librechroot - flag "-n <$(_ CHROOT)>" 'Name of the chroot to use' - flag "-l <$(_ COPY)>" 'Name of, or absolute path to, the chroot copy to use' - flag "-w <$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')>" 'Bind mount a file or directory, read/write' - flag "-r <$(_ 'PATH[:INSIDE_PATH[:OPTIONS]]')>" 'Bind mount a file or directory, read-only' - print ' %s options:' libremakepkg - flag '-N' "Don't disable networking during prepare(), - build(), and package(). PLEASE don't use this - unless you have a special reason, its use is a - violation of Parabola policy." - flag '-R' 'Repackage contents of the package without rebuilding' - flag '-h' 'Show this message' + + flag 'librechroot options:' \ + "-n <$(_ CHROOT)>" 'Name of the chroot to use' \ + "-l <$(_ COPY)>" 'Name of, or absolute path to, the chroot copy to use' \ + "-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 'libremakepkg options:' \ + '-N' "Don't disable networking during prepare(), + build(), and package(). PLEASE don't use + this unless you have a special reason, its + use is a violation of Parabola policy." \ + '-R' 'Repackage contents of the package without + rebuilding' \ + '-h' 'Show this message' } # Convenience method for use in option parsing -- cgit v1.2.2