mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 18:12:08 +02:00
Fix a typo in cros_workon, and make command help output nicer
Details The cros_workong help text has a typographic error of 'commond' rather than 'command'. This change addresses that issue. The help text output for the list of commands was also not nicely aligned, so I've addressed that, too. Testing ~thutt/g-chroot-execute sudo emerge cros-devutils After the build & install completed, I executed: ~thutt/scripts/g-workon --help The output now looks like the following. The typo was on the 'iterate' command. usage: /usr/bin/cros_workon <command> [flags] [<list of packages>|--all] commands: start: Moves an ebuild to live (intended to support development) stop: Moves an ebuild to stable (use last known good) list: List of live ebuilds (workon ebuilds if --all) list-all: List all of the live ebuilds for all setup boards iterate: For each ebuild, cd to the source dir and run a command flags: --board: The board to set package keywords for. (default: '') --[no]host: Uses the host instead of board (default: false) --command: The command to be run by forall. (default: 'git status') --[no]all: Apply to all possible packages for the given command (default: false) -h,--[no]help: show this help (default: false) BUG=0 TEST=See above Review URL: http://codereview.chromium.org/6812022 Change-Id: Idbf9f2cdde1095c310a79740eeef08087c0d415c
This commit is contained in:
parent
230883f9ec
commit
82bbe72ac7
10
cros_workon
10
cros_workon
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
||||
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
@ -26,11 +26,11 @@ DEFINE_boolean all "${FLAGS_FALSE}" \
|
||||
|
||||
FLAGS_HELP="usage: $0 <command> [flags] [<list of packages>|--all]
|
||||
commands:
|
||||
start: Moves an ebuild to live (intended to support development)
|
||||
stop: Moves an ebuild to stable (use last known good)
|
||||
list: List of live ebuilds (workon ebuilds if --all)
|
||||
start: Moves an ebuild to live (intended to support development)
|
||||
stop: Moves an ebuild to stable (use last known good)
|
||||
list: List of live ebuilds (workon ebuilds if --all)
|
||||
list-all: List all of the live ebuilds for all setup boards
|
||||
iterate: For each ebuild, cd to the source dir and run a commond"
|
||||
iterate: For each ebuild, cd to the source dir and run a command"
|
||||
FLAGS "$@" || { [ "${FLAGS_help}" = "${FLAGS_TRUE}" ] && exit 0; } || exit 1
|
||||
eval set -- "${FLAGS_ARGV}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user