File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,13 @@ usage() {
54
54
usage-start () {
55
55
cat << EOF
56
56
$( format_title ' Syntax:' )
57
- $( format_command " ${SELF} " ) $( format_arg SERVICE...) $( format_opt_arg --new)
57
+ $( format_command " ${SELF} " ) $( format_opt_arg SERVICE...) $( format_opt_arg --new)
58
58
Where $( format_arg SERVICE) is one of: ${SERVICES[@]} .
59
+ Default: $( format_arg " ${SERVICES[0]} " )
59
60
60
61
$( format_title ' Usage:' )
62
+ You want to start any collector (default: $( service-name " ${SERVICES[0]} " ) ):
63
+ $( format_command " ${SELF% ' --' } " )
61
64
You want to start $( service-name jaeger) :
62
65
$( format_command " ${SELF:? } " ) $( format_arg jaeger)
63
66
You want to (re)start $( service-name jaeger) and delete existing data:
@@ -368,7 +371,10 @@ source "${BASH_TOOLBOX:?}"/log.sh
368
371
369
372
if [ " $# " == 0 ]; then
370
373
case " ${ACTION} " in
371
- start) die " You must pass at least one service name (supported: ${SERVICES[@]} )." ;;
374
+ start)
375
+ info " No service name passed, using $( service-name " ${SERVICES[0]} " ) as a default."
376
+ set -- " ${SERVICES[0]} "
377
+ ;;
372
378
stop)
373
379
info ' No service name passed, stopping all services.'
374
380
set -- " ${SERVICES[@]} "
You can’t perform that action at this time.
0 commit comments