| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 #include "include/dart_tools_api.h" | 10 #include "include/dart_tools_api.h" |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 "Common options:\n" | 760 "Common options:\n" |
| 761 "--checked or -c\n" | 761 "--checked or -c\n" |
| 762 " Insert runtime type checks and enable assertions (checked mode).\n" | 762 " Insert runtime type checks and enable assertions (checked mode).\n" |
| 763 "--help or -h\n" | 763 "--help or -h\n" |
| 764 " Display this message (add -v or --verbose for information about\n" | 764 " Display this message (add -v or --verbose for information about\n" |
| 765 " all VM options).\n" | 765 " all VM options).\n" |
| 766 "--package-root=<path> or -p<path>\n" | 766 "--package-root=<path> or -p<path>\n" |
| 767 " Where to find packages, that is, \"package:...\" imports.\n" | 767 " Where to find packages, that is, \"package:...\" imports.\n" |
| 768 "--packages=<path>\n" | 768 "--packages=<path>\n" |
| 769 " Where to find a package spec file.\n" | 769 " Where to find a package spec file.\n" |
| 770 "--observe[=<port>[/<bind-address>]]\n" |
| 771 " Enable the VM service and cause isolates to pause on exit (default port is\n" |
| 772 " 8181, default bind address is 127.0.0.1). With the default options,\n" |
| 773 " Observatory will be available locally at http://127.0.0.1:8181/\n" |
| 770 "--version\n" | 774 "--version\n" |
| 771 " Print the VM version.\n"); | 775 " Print the VM version.\n"); |
| 772 } else { | 776 } else { |
| 773 Log::PrintErr( | 777 Log::PrintErr( |
| 774 "Supported options:\n" | 778 "Supported options:\n" |
| 775 "--checked or -c\n" | 779 "--checked or -c\n" |
| 776 " Insert runtime type checks and enable assertions (checked mode).\n" | 780 " Insert runtime type checks and enable assertions (checked mode).\n" |
| 777 "--help or -h\n" | 781 "--help or -h\n" |
| 778 " Display this message (add -v or --verbose for information about\n" | 782 " Display this message (add -v or --verbose for information about\n" |
| 779 " all VM options).\n" | 783 " all VM options).\n" |
| 780 "--package-root=<path> or -p<path>\n" | 784 "--package-root=<path> or -p<path>\n" |
| 781 " Where to find packages, that is, \"package:...\" imports.\n" | 785 " Where to find packages, that is, \"package:...\" imports.\n" |
| 786 "--packages=<path>\n" |
| 787 " Where to find a package spec file.\n" |
| 788 "--observe[=<port>[/<bind-address>]]\n" |
| 789 " Enable the VM service and cause isolates to pause on exit (default port is\n" |
| 790 " 8181, default bind address is 127.0.0.1). With the default options,\n" |
| 791 " Observatory will be available locally at http://127.0.0.1:8181/\n" |
| 782 "--version\n" | 792 "--version\n" |
| 783 " Print the VM version.\n" | 793 " Print the VM version.\n" |
| 784 "\n" | 794 "\n" |
| 785 "--debug[:<port number>]\n" | 795 "--debug[:<port number>]\n" |
| 786 " enables debugging and listens on specified port for debugger connections\n" | 796 " enables debugging and listens on specified port for debugger connections\n" |
| 787 " (default port number is 5858)\n" | 797 " (default port number is 5858)\n" |
| 788 "\n" | 798 "\n" |
| 789 "--break-at=<location>\n" | 799 "--break-at=<location>\n" |
| 790 " sets a breakpoint at specified location where <location> is one of :\n" | 800 " sets a breakpoint at specified location where <location> is one of :\n" |
| 791 " url:<line_num> e.g. test.dart:10\n" | 801 " url:<line_num> e.g. test.dart:10\n" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 exit(Process::GlobalExitCode()); | 1186 exit(Process::GlobalExitCode()); |
| 1177 } | 1187 } |
| 1178 | 1188 |
| 1179 } // namespace bin | 1189 } // namespace bin |
| 1180 } // namespace dart | 1190 } // namespace dart |
| 1181 | 1191 |
| 1182 int main(int argc, char** argv) { | 1192 int main(int argc, char** argv) { |
| 1183 dart::bin::main(argc, argv); | 1193 dart::bin::main(argc, argv); |
| 1184 UNREACHABLE(); | 1194 UNREACHABLE(); |
| 1185 } | 1195 } |
| OLD | NEW |