Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: mojo/devtools/common/mojo_run

Issue 1257873005: Add --wait-for-debugger to devtools' documentation (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/devtools/common/README.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import argparse 6 import argparse
7 import logging 7 import logging
8 import sys 8 import sys
9 9
10 from devtoolslib import paths 10 from devtoolslib import paths
11 from devtoolslib import shell_arguments 11 from devtoolslib import shell_arguments
12 12
13 _USAGE = ("mojo_run " 13 _USAGE = ("mojo_run "
14 "[--args-for=<mojo-app>] " 14 "[--args-for=<mojo-app>] "
15 "[--content-handlers=<handlers>] " 15 "[--content-handlers=<handlers>] "
16 "[--enable-external-applications] " 16 "[--enable-external-applications] "
17 "[--disable-cache] " 17 "[--disable-cache] "
18 "[--enable-multiprocess] " 18 "[--enable-multiprocess] "
19 "[<mojo-app>] " 19 "[--wait-for-debugger] "
20 "[--sky <mojo-app>|<mojo-app>] "
20 """ 21 """
21 22
22 A <mojo-app> is a Mojo URL or a Mojo URL and arguments within quotes. 23 A <mojo-app> is a Mojo URL or a Mojo URL and arguments within quotes.
23 Example: mojo_run "mojo:js_standalone test.js". 24 Example: mojo_run "mojo:js_standalone test.js".
24 <url-lib-path> is searched for shared libraries named by mojo URLs. 25 <url-lib-path> is searched for shared libraries named by mojo URLs.
25 The value of <handlers> is a comma separated list like: 26 The value of <handlers> is a comma separated list like:
26 text/html,mojo:html_viewer,application/javascript,mojo:js_content_handler 27 text/html,mojo:html_viewer,application/javascript,mojo:js_content_handler
27 """) 28 """)
28 29
29 _DESCRIPTION = """Runner for Mojo applications. 30 _DESCRIPTION = """Runner for Mojo applications.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 if script_args.verbose: 123 if script_args.verbose:
123 print "Shell arguments: " + str(shell_args) 124 print "Shell arguments: " + str(shell_args)
124 125
125 shell.Run(shell_args) 126 shell.Run(shell_args)
126 return 0 127 return 0
127 128
128 129
129 if __name__ == "__main__": 130 if __name__ == "__main__":
130 sys.exit(main()) 131 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/devtools/common/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698