From 82bbe72ac7b257a6a9ad9ff4444061ed96055b95 Mon Sep 17 00:00:00 2001 From: Taylor Hutt Date: Thu, 7 Apr 2011 17:27:14 -0700 Subject: [PATCH] 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 [flags] [|--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 --- cros_workon | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cros_workon b/cros_workon index fc1c365ba8..30fb68e80e 100755 --- a/cros_workon +++ b/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 [flags] [|--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}"