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

Unified Diff: mojo/devtools/common/mojo_run

Issue 1259243003: Allow to pass additional shell arguments in `mojo_test`. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/devtools/common/mojo_test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/devtools/common/mojo_run
diff --git a/mojo/devtools/common/mojo_run b/mojo/devtools/common/mojo_run
index a2ac36f4b8e18182655e4ae2379a35a7487efba5..922d7bb4f6f994ec8881571b61fca0b80d94d1ea 100755
--- a/mojo/devtools/common/mojo_run
+++ b/mojo/devtools/common/mojo_run
@@ -10,7 +10,7 @@ import sys
from devtoolslib import paths
from devtoolslib import shell_arguments
-USAGE = ("mojo_run "
+_USAGE = ("mojo_run "
"[--args-for=<mojo-app>] "
"[--content-handlers=<handlers>] "
"[--enable-external-applications] "
@@ -26,6 +26,11 @@ The value of <handlers> is a comma separated list like:
text/html,mojo:html_viewer,application/javascript,mojo:js_content_handler
""")
+_DESCRIPTION = """Runner for Mojo applications.
+
+Any arguments not recognized by the script will be passed on as shell arguments.
+"""
+
# Port on which the mojo:debugger http server will be available on the host
# machine.
@@ -49,7 +54,7 @@ def _ConfigureDebugger(shell):
def main():
logging.basicConfig()
- parser = argparse.ArgumentParser(usage=USAGE)
+ parser = argparse.ArgumentParser(usage=_USAGE, description=_DESCRIPTION)
# Arguments allowing to indicate the configuration we are targeting when
# running within a Chromium-like checkout. These will go away once we have
« no previous file with comments | « no previous file | mojo/devtools/common/mojo_test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698