From 43de2dbea744683a33f8112f3c857243a995d5ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Mon, 18 Feb 2019 07:26:28 +0100
Subject: [PATCH] compile_pkgs: tweak help to make hint about options to use

This should make much more clearer what are usable and what are not
configuration options.
---
 compile_pkgs | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/compile_pkgs b/compile_pkgs
index 84a66bb55..187bfd52f 100755
--- a/compile_pkgs
+++ b/compile_pkgs
@@ -550,20 +550,22 @@ print_help() {
 	echo "Usage: ${0} [OPTION].. [COMMAND].."
 	echo "Compile TurrisOS packages. This script fetches, patches and configures OpenWRT tree."
 	echo
-	echo "Available options are:"
+	echo "Primary options:"
 	echo "	-e		Build everything, not just minimal set"
+	echo "	-t BOARD	Set target board to BOARD. This is required for almost all commands."
 	echo "	-jNUM		Number of jobs in paralel to be run. In default number of CPUs is used."
+	echo "	-a ARG		Add build arguments - passed directly to make. This option can be specified multiple times."
 	echo "	-f[NUM]		Try hard to get stuff to compile (optional number specifies number of tries)"
-	echo "	-t BOARD	Set target board to BOARD. This is required for almost all commands."
+	echo "	-o PATH		Path to output directory where repository is prepared. In default ./pkgsrepo is used."
+	echo "	-s KEY		Sign packges with given private key. Key has to be generated using using tool."
+	echo "	-h, --help	Show this help text"
+	echo
+	echo "Configuration override options:"
 	echo "	-b BRANCH	Branch to checkout in OpenWRT. You can optionaly use here any valid git reference in OpenWRT git tree."
 	echo "	-p BRANCH	Name of the branch that is being build. If not specified 'hbs' is used."
-	echo "	-a ARG		Add build arguments - passed directly to make. This option can be specified multiple times."
 	echo "	-l		Do not update local git mirrors. Use them as they are to fetch OpenWRT and its feeds."
-	echo "	-o PATH		Path to output directory where repository is prepared. In default ./pkgsrepo is used."
-	echo "	-s KEY		Sign packges with given private key. Key has to be generated using using tool."
 	echo "	-d		Do not use shallow checkouts"
 	echo "	-x		Enable debug mode"
-	echo "	-h, --help	Show this help text"
 	echo
 	echo "Available commands are:"
 	for cmd in "${!available_commands[@]}"; do
-- 
GitLab