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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 "--observe[=<port>[/<bind-address>]]\n" | 956 "--observe[=<port>[/<bind-address>]]\n" |
957 " The observe flag is a convenience flag used to run a program with a\n" | 957 " The observe flag is a convenience flag used to run a program with a\n" |
958 " set of options which are often useful for debugging under Observatory.\n" | 958 " set of options which are often useful for debugging under Observatory.\n" |
959 " These options are currently:\n" | 959 " These options are currently:\n" |
960 " --enable-vm-service[=<port>[/<bind-address>]]\n" | 960 " --enable-vm-service[=<port>[/<bind-address>]]\n" |
961 " --pause-isolates-on-exit\n" | 961 " --pause-isolates-on-exit\n" |
962 " --pause-isolates-on-unhandled-exceptions\n" | 962 " --pause-isolates-on-unhandled-exceptions\n" |
963 " --warn-on-pause-with-no-debugger\n" | 963 " --warn-on-pause-with-no-debugger\n" |
964 " This set is subject to change.\n" | 964 " This set is subject to change.\n" |
965 " Please see these options (--help --verbose) for further documentation.\n" | 965 " Please see these options (--help --verbose) for further documentation.\n" |
| 966 "--snapshot-kind=<snapsot_kind>\n" |
| 967 "--snapshot=<file_name>\n" |
| 968 " These snapshot options are used to generate a snapshot of the loaded\n" |
| 969 " Dart script:\n" |
| 970 " <snapshot-kind> controls the kind of snapshot, it could be\n" |
| 971 " script(default), app-aot or app-jit\n" |
| 972 " <file_name> specifies the file into which the snapshot is written\n" |
966 "--version\n" | 973 "--version\n" |
967 " Print the VM version.\n"); | 974 " Print the VM version.\n"); |
968 } else { | 975 } else { |
969 Log::PrintErr( | 976 Log::PrintErr( |
970 "Supported options:\n" | 977 "Supported options:\n" |
971 "--checked or -c\n" | 978 "--checked or -c\n" |
972 " Insert runtime type checks and enable assertions (checked mode).\n" | 979 " Insert runtime type checks and enable assertions (checked mode).\n" |
973 "--help or -h\n" | 980 "--help or -h\n" |
974 " Display this message (add -v or --verbose for information about\n" | 981 " Display this message (add -v or --verbose for information about\n" |
975 " all VM options).\n" | 982 " all VM options).\n" |
976 "--package-root=<path> or -p<path>\n" | 983 "--package-root=<path> or -p<path>\n" |
977 " Where to find packages, that is, \"package:...\" imports.\n" | 984 " Where to find packages, that is, \"package:...\" imports.\n" |
978 "--packages=<path>\n" | 985 "--packages=<path>\n" |
979 " Where to find a package spec file.\n" | 986 " Where to find a package spec file.\n" |
980 "--observe[=<port>[/<bind-address>]]\n" | 987 "--observe[=<port>[/<bind-address>]]\n" |
981 " The observe flag is a convenience flag used to run a program with a\n" | 988 " The observe flag is a convenience flag used to run a program with a\n" |
982 " set of options which are often useful for debugging under Observatory.\n" | 989 " set of options which are often useful for debugging under Observatory.\n" |
983 " These options are currently:\n" | 990 " These options are currently:\n" |
984 " --enable-vm-service[=<port>[/<bind-address>]]\n" | 991 " --enable-vm-service[=<port>[/<bind-address>]]\n" |
985 " --pause-isolates-on-exit\n" | 992 " --pause-isolates-on-exit\n" |
986 " --pause-isolates-on-unhandled-exceptions\n" | 993 " --pause-isolates-on-unhandled-exceptions\n" |
987 " --warn-on-pause-with-no-debugger\n" | 994 " --warn-on-pause-with-no-debugger\n" |
988 " This set is subject to change.\n" | 995 " This set is subject to change.\n" |
989 " Please see these options for further documentation.\n" | 996 " Please see these options for further documentation.\n" |
| 997 "--snapshot-kind=<snapsot_kind>\n" |
| 998 "--snapshot=<file_name>\n" |
| 999 " These snapshot options are used to generate a snapshot of the loaded\n" |
| 1000 " Dart script:\n" |
| 1001 " <snapshot-kind> controls the kind of snapshot, it could be\n" |
| 1002 " script(default), app-aot or app-jit\n" |
| 1003 " <file_name> specifies the file into which the snapshot is written\n" |
990 "--version\n" | 1004 "--version\n" |
991 " Print the VM version.\n" | 1005 " Print the VM version.\n" |
992 "\n" | 1006 "\n" |
993 "--snapshot=<file_name>\n" | |
994 " loads Dart script and generates a snapshot in the specified file\n" | |
995 "\n" | |
996 "--trace-loading\n" | 1007 "--trace-loading\n" |
997 " enables tracing of library and script loading\n" | 1008 " enables tracing of library and script loading\n" |
998 "\n" | 1009 "\n" |
999 "--enable-vm-service[=<port>[/<bind-address>]]\n" | 1010 "--enable-vm-service[=<port>[/<bind-address>]]\n" |
1000 " enables the VM service and listens on specified port for connections\n" | 1011 " enables the VM service and listens on specified port for connections\n" |
1001 " (default port number is 8181, default bind address is 127.0.0.1).\n" | 1012 " (default port number is 8181, default bind address is 127.0.0.1).\n" |
1002 #if !defined(TARGET_OS_MACOS) | 1013 #if !defined(TARGET_OS_MACOS) |
1003 "\n" | 1014 "\n" |
1004 "--root-certs-file=<path>\n" | 1015 "--root-certs-file=<path>\n" |
1005 " The path to a file containing the trusted root certificates to use for\n" | 1016 " The path to a file containing the trusted root certificates to use for\n" |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1954 Platform::Exit(Process::GlobalExitCode()); | 1965 Platform::Exit(Process::GlobalExitCode()); |
1955 } | 1966 } |
1956 | 1967 |
1957 } // namespace bin | 1968 } // namespace bin |
1958 } // namespace dart | 1969 } // namespace dart |
1959 | 1970 |
1960 int main(int argc, char** argv) { | 1971 int main(int argc, char** argv) { |
1961 dart::bin::main(argc, argv); | 1972 dart::bin::main(argc, argv); |
1962 UNREACHABLE(); | 1973 UNREACHABLE(); |
1963 } | 1974 } |
OLD | NEW |