Commit ff1318ab authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Rearranged usage message slightly

parent 1d6b99e1
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -22,12 +22,17 @@ test -e ${CONFIG_FILE} &&
usage() {
	tee <<-END
	Usage:
	  $0 [-h] [register] [-d DESCRIPTION] [-u COORDINATOR] TOKEN [NAME]
	  $0 [-h] unregister RUNNER_NAME
	  $0 [--help|--help-config] [SUBCOMMAND [ARGUMENTS...]] [OPTIONS]

	Options:
	Global Options:
	  -h --help         Print this message and exit
	     --help-config  Print a message explaining the configuration file format

	Subcommands:
	  $0 [register] [-d DESCRIPTION] [-u COORDINATOR] TOKEN [NAME]
	  $0 unregister RUNNER_NAME

	Options:
	  -u --url          The co-ordinator's URL
	  -d --description  A description for the GitLab UI (defaults to NAME)