From ce90764f028433b53539089a97590f47d5607e34 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Fri, 8 Oct 2010 20:21:01 +0000 Subject: Add --help and --man-page to chrome-wrapper. --help shows command line args and --man-page opens the man page in the tree (preprocessed). Review URL: http://codereview.chromium.org/3529025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62007 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/tools/build/linux/chrome-wrapper | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chrome') diff --git a/chrome/tools/build/linux/chrome-wrapper b/chrome/tools/build/linux/chrome-wrapper index a2a1188..09f43ac 100755 --- a/chrome/tools/build/linux/chrome-wrapper +++ b/chrome/tools/build/linux/chrome-wrapper @@ -10,6 +10,14 @@ DESKTOP="chromium-devel" TITLE="Chromium" +usage() { + echo "$0 [--gdb] [--help] [--man-page] [--] [chrome-options]" + echo + echo " --gdb Start within gdb" + echo " --help This help screen" + echo " --man-page Open the man page in the tree" +} + # Check to see if there is a desktop file of the given name. exists_desktop_file() { # Build a search list from $XDG_DATA_HOME and $XDG_DATA_DIRS, the latter @@ -139,6 +147,11 @@ while [ "$#" -gt 0 ]; do break ;; "--gdb") CMD_PREFIX="gdb --args" ;; + "--help") + usage + exit 0 ;; + "--man-page") + exec man "$HERE/../../chrome/app/resources/manpage.1.in" ;; *) ARGS=( "${ARGS[@]}" "$1" ) ;; esac -- cgit v1.1