live-build/functions
Lyndon Brown 6b7c8ed4bf frontend: properly handle option processing
this means that the usage goes from:
 lb {-h|--help|-u|--usage|-v|--version}
 lb COMMAND [OPTIONS]

to:
 lb {-h|--help|-u|--usage|-v|--version}
 lb [FRONTEND_OPTIONS] COMMAND [COMMAND_OPTIONS]

though it is probably not worth is to update the description in the
manpages...? hmm...

so for instance this matters for color control with --color|--no-color
(you already had full control via environment vars). previously you could
do `lb COMMAND --no-color` to turn off colour, only to find that output
at the frontend level was still coloured (the option is processed at the
command context level, not the frontend), so you might try to instead use
`lb --no-color COMMAND`, only to find that this was not supported. Well
now it is, and used at the frontend level will fully control colour output
(after the command is processed anyway).

the full set of common options are thus available (except --force) at the
frontend level, and thus for instance all Echo_*() helpers used in the
frontend will work correctly after args are processed.

furthermore usage like `lb --color --help` will actually work. (not that
color is used there, but this previously would have failed with the
frontend treating the `--color` argument as the command; that's the point!)

Gbp-Dch: Short
2020-04-23 16:29:00 +02:00
..
aliases.sh fix $@ parameter expansion issues 2020-04-23 09:38:01 +00:00
architectures.sh rename LB_BOOTSTRAP_QEMU_ARCHITECTURES to LB_BOOTSTRAP_QEMU_ARCHITECTURE 2020-04-23 16:00:34 +02:00
arguments.sh frontend: properly handle option processing 2020-04-23 16:29:00 +02:00
bootloaders.sh bootloaders: improve bootloader list handling 2020-04-23 11:52:04 +01:00
breakpoints.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
cache.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
chroot_bind_path.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
chroot.sh chroot: make var local 2020-04-23 15:47:00 +02:00
color.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
common.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
conffile.sh rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
configuration.sh rename LB_BOOTSTRAP_QEMU_ARCHITECTURES to LB_BOOTSTRAP_QEMU_ARCHITECTURE 2020-04-23 16:00:34 +02:00
echo.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
exit.sh exit: fix missing local scope 2020-03-17 17:33:31 +00:00
firmwarelists.sh rename LB_ARCHITECTURES to LB_ARCHITECTURE 2020-04-23 15:54:19 +02:00
help.sh "Live Systems" -> "Debian Live" 2020-03-11 15:23:31 +00:00
init.sh frontend: properly handle option processing 2020-04-23 16:29:00 +02:00
lockfile.sh locks: tidy lock acquisition 2020-03-13 15:37:38 +00:00
losetup.sh use local scope for private function vars 2020-03-16 22:10:03 +00:00
packagelists.sh fix $@ parameter expansion issues 2020-04-23 09:38:01 +00:00
packages.sh packages: remove auto-installed on removal 2020-04-23 09:25:17 +00:00
sourcelist.sh archives: explicitly pass along _PASS to Create_apt_sources_list 2020-03-20 11:43:01 +00:00
stagefile.sh fix $@ parameter expansion issues 2020-04-23 09:38:01 +00:00
usage.sh amend copyright & licensing blocks 2020-03-11 13:51:19 +00:00
wrapper.sh fix $@ parameter expansion issues 2020-04-23 09:38:01 +00:00