| 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 "--help or -h\n" | 851 "--help or -h\n" |
| 852 " Display this message (add -v or --verbose for information about\n" | 852 " Display this message (add -v or --verbose for information about\n" |
| 853 " all VM options).\n" | 853 " all VM options).\n" |
| 854 "--package-root=<path> or -p<path>\n" | 854 "--package-root=<path> or -p<path>\n" |
| 855 " Where to find packages, that is, \"package:...\" imports.\n" | 855 " Where to find packages, that is, \"package:...\" imports.\n" |
| 856 "--packages=<path>\n" | 856 "--packages=<path>\n" |
| 857 " Where to find a package spec file.\n" | 857 " Where to find a package spec file.\n" |
| 858 "--observe[=<port>[/<bind-address>]]\n" | 858 "--observe[=<port>[/<bind-address>]]\n" |
| 859 " The observe flag is a convenience flag used to run a program with a\n" | 859 " The observe flag is a convenience flag used to run a program with a\n" |
| 860 " set of options which are often useful for debugging under Observatory.\n" | 860 " set of options which are often useful for debugging under Observatory.\n" |
| 861 " These default options are:\n" | 861 " These options are currently:\n" |
| 862 " --enable-vm-service[=<port>[/<bind-address>]]\n" | 862 " --enable-vm-service[=<port>[/<bind-address>]]\n" |
| 863 " --pause-isolates-on-exit\n" | 863 " --pause-isolates-on-exit\n" |
| 864 " --pause-isolates-on-unhandled-exceptions\n" | 864 " --pause-isolates-on-unhandled-exceptions\n" |
| 865 " --warn-on-pause-with-no-debugger\n" | 865 " --warn-on-pause-with-no-debugger\n" |
| 866 " This set is subject to change.\n" |
| 866 " Please see these options (--help --verbose) for further documentation.\n" | 867 " Please see these options (--help --verbose) for further documentation.\n" |
| 867 "--version\n" | 868 "--version\n" |
| 868 " Print the VM version.\n"); | 869 " Print the VM version.\n"); |
| 869 } else { | 870 } else { |
| 870 Log::PrintErr( | 871 Log::PrintErr( |
| 871 "Supported options:\n" | 872 "Supported options:\n" |
| 872 "--checked or -c\n" | 873 "--checked or -c\n" |
| 873 " Insert runtime type checks and enable assertions (checked mode).\n" | 874 " Insert runtime type checks and enable assertions (checked mode).\n" |
| 874 "--help or -h\n" | 875 "--help or -h\n" |
| 875 " Display this message (add -v or --verbose for information about\n" | 876 " Display this message (add -v or --verbose for information about\n" |
| 876 " all VM options).\n" | 877 " all VM options).\n" |
| 877 "--package-root=<path> or -p<path>\n" | 878 "--package-root=<path> or -p<path>\n" |
| 878 " Where to find packages, that is, \"package:...\" imports.\n" | 879 " Where to find packages, that is, \"package:...\" imports.\n" |
| 879 "--packages=<path>\n" | 880 "--packages=<path>\n" |
| 880 " Where to find a package spec file.\n" | 881 " Where to find a package spec file.\n" |
| 881 "--observe[=<port>[/<bind-address>]]\n" | 882 "--observe[=<port>[/<bind-address>]]\n" |
| 882 " The observe flag is a convenience flag used to run a program with a\n" | 883 " The observe flag is a convenience flag used to run a program with a\n" |
| 883 " set of options which are often useful for debugging under Observatory.\n" | 884 " set of options which are often useful for debugging under Observatory.\n" |
| 884 " These default options are:\n" | 885 " These options are currently:\n" |
| 885 " --enable-vm-service[=<port>[/<bind-address>]]\n" | 886 " --enable-vm-service[=<port>[/<bind-address>]]\n" |
| 886 " --pause-isolates-on-exit\n" | 887 " --pause-isolates-on-exit\n" |
| 887 " --pause-isolates-on-unhandled-exceptions\n" | 888 " --pause-isolates-on-unhandled-exceptions\n" |
| 888 " --warn-on-pause-with-no-debugger\n" | 889 " --warn-on-pause-with-no-debugger\n" |
| 890 " This set is subject to change.\n" |
| 889 " Please see these options for further documentation.\n" | 891 " Please see these options for further documentation.\n" |
| 890 "--version\n" | 892 "--version\n" |
| 891 " Print the VM version.\n" | 893 " Print the VM version.\n" |
| 892 "\n" | 894 "\n" |
| 893 "--snapshot=<file_name>\n" | 895 "--snapshot=<file_name>\n" |
| 894 " loads Dart script and generates a snapshot in the specified file\n" | 896 " loads Dart script and generates a snapshot in the specified file\n" |
| 895 "\n" | 897 "\n" |
| 896 "--trace-loading\n" | 898 "--trace-loading\n" |
| 897 " enables tracing of library and script loading\n" | 899 " enables tracing of library and script loading\n" |
| 898 "\n" | 900 "\n" |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 Platform::Exit(Process::GlobalExitCode()); | 1731 Platform::Exit(Process::GlobalExitCode()); |
| 1730 } | 1732 } |
| 1731 | 1733 |
| 1732 } // namespace bin | 1734 } // namespace bin |
| 1733 } // namespace dart | 1735 } // namespace dart |
| 1734 | 1736 |
| 1735 int main(int argc, char** argv) { | 1737 int main(int argc, char** argv) { |
| 1736 dart::bin::main(argc, argv); | 1738 dart::bin::main(argc, argv); |
| 1737 UNREACHABLE(); | 1739 UNREACHABLE(); |
| 1738 } | 1740 } |
| OLD | NEW |