From a42ffcddbbf928d76e751b2f746fed7acf497486 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 3 Feb 2016 17:34:32 -0800 Subject: [PATCH] build_packages: include all flags in usage message --- build_packages | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/build_packages b/build_packages index 8e05c9b485..a2820fdf40 100755 --- a/build_packages +++ b/build_packages @@ -15,13 +15,25 @@ assert_not_root_user DEFINE_string board "${DEFAULT_BOARD}" \ "The board to build packages for." DEFINE_boolean usepkg "${FLAGS_TRUE}" \ - "Use binary packages to bootstrap when possible." + "Use binary packages when possible." DEFINE_boolean getbinpkg "${FLAGS_TRUE}" \ "Download binary packages from remote repository." +DEFINE_string getbinpkgver "" \ + "Use binary packages from a specific version." +DEFINE_boolean toolchainpkgonly "${FLAGS_FALSE}" \ + "Use binary packages only for the board toolchain." DEFINE_boolean workon "${FLAGS_TRUE}" \ "Automatically rebuild updated cros-workon packages." DEFINE_boolean fetchonly "${FLAGS_FALSE}" \ "Don't build anything, instead only fetch what is needed." +DEFINE_integer jobs "${NUM_JOBS}" \ + "How many packages to build in parallel at maximum." +DEFINE_boolean rebuild "${FLAGS_FALSE}" \ + "Automatically rebuild dependencies." +DEFINE_boolean skip_toolchain_update "${FLAGS_FALSE}" \ + "Don't update toolchain automatically." +DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \ + "Don't run the chroot upgrade automatically; use with care." # include upload options . "${BUILD_LIBRARY_DIR}/release_util.sh" || exit 1 @@ -36,23 +48,6 @@ up by the build_image script to put together a bootable CoreOS image. If [packages] are specified, only build those specific packages (and any dependencies they might need). " -show_help_if_requested "$@" - -# The following options are advanced options, only available to those willing -# to read the source code. They are not shown in help output, since they are -# not needed for the typical developer workflow. -DEFINE_string getbinpkgver "" \ - "Use binary packages from a specific version." -DEFINE_boolean toolchainpkgonly $FLAGS_FALSE \ - "Use binary packages only for the board toolchain." -DEFINE_integer jobs "${NUM_JOBS}" \ - "How many packages to build in parallel at maximum." -DEFINE_boolean rebuild "${FLAGS_FALSE}" \ - "Don't automatically rebuild dependencies." -DEFINE_boolean skip_chroot_upgrade "${FLAGS_FALSE}" \ - "Don't run the chroot upgrade automatically; use with care." -DEFINE_boolean skip_toolchain_update "${FLAGS_FALSE}" \ - "Don't update toolchain automatically." # Parse command line FLAGS "$@" || exit 1