diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-14 18:24:35 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-15 12:28:23 -0400 |
commit | d9588459d035cc3d890892c8a8b3adbd466797e5 (patch) | |
tree | fe37fd6f7aac97eb3b353100b3ceb37e1e9fb9a4 /src/chroot-tools | |
parent | bb094e1fdbe5c0c365aabc46041de5e1ab9ec444 (diff) |
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!
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-x | src/chroot-tools/libremakepkg | 27 |
1 files changed, 15 insertions, 12 deletions
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 |