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

Unified Diff: sky/tools/skydb

Issue 837283002: Mojo JS Bindings: merge Application, Shell, ServiceProvider with Sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: sky/tools/skydb
diff --git a/sky/tools/skydb b/sky/tools/skydb
index 5210b88396573fd3b1a337eba591212d61a8b754..6d5d8fa96abed896171f4786901cb4aa5f279ce0 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -71,6 +71,8 @@ class SkyDebugger(object):
parser.add_argument('--gdb', action='store_true')
parser.add_argument('--use-osmesa', action='store_true',
default=self._in_chromoting())
+ parser.add_argument('--show_command', action='store_true',
abarth-chromium 2015/01/07 22:52:01 --show_command -> --show-command (for consistency
hansmuller1 2015/01/07 23:33:04 Done.
+ help='Display the shell command and exit')
parser.add_argument('url', nargs='?', type=str)
configuration.add_arguments(parser)
args = parser.parse_args()
@@ -98,7 +100,10 @@ class SkyDebugger(object):
if args.gdb:
shell_command = ['gdb', '--args'] + shell_command
- subprocess.check_call(shell_command)
+ if args.show_command:
+ print " ".join(shell_command)
+ else:
+ subprocess.check_call(shell_command)
def shutdown(self):
print "Quitting"

Powered by Google App Engine
This is Rietveld 408576698