summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-08 20:21:01 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-08 20:21:01 +0000
commitce90764f028433b53539089a97590f47d5607e34 (patch)
treecdb035479c1be9e8ea8049fb06a9571e01162919 /chrome/tools
parent83c18d40e8d5ae1faa5903720a421a303cc1a531 (diff)
downloadchromium_src-ce90764f028433b53539089a97590f47d5607e34.zip
chromium_src-ce90764f028433b53539089a97590f47d5607e34.tar.gz
chromium_src-ce90764f028433b53539089a97590f47d5607e34.tar.bz2
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
Diffstat (limited to 'chrome/tools')
-rwxr-xr-xchrome/tools/build/linux/chrome-wrapper13
1 files changed, 13 insertions, 0 deletions
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