Changeset 1185 in kBuild for trunk/src/ash
- Timestamp:
- Oct 5, 2007 10:51:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/main.c
r1078 r1185 115 115 setlocale(LC_ALL, ""); 116 116 117 /* Just a --version for show. */ 118 if (argc > 1 119 && argv[1][0] == '-' 120 && argv[1][1] == '-') { 121 if (!strcmp(&argv[1][2], "version")) { 122 printf("kmk_ash - kBuild version %d.%d.%d\n", 123 KBUILD_VERSION_MAJOR, KBUILD_VERSION_MINOR, KBUILD_VERSION_PATCH); 124 return 0; 125 } 126 if (!strcmp(&argv[1][2], "help")) { 127 printf("usage: kmk_ash [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name]\n" 128 " [+o option_name] [command_file [argument ...]]\n" 129 " or: kmk_ash -c [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name]\n" 130 " [+o option_name] command_string [command_name [argument ...]]\n" 131 " or: kmk_ash -s [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name]\n" 132 " [+o option_name] [argument ...]\n" 133 " or: kmk_ash --help\n" 134 " or: kmk_ash --version\n", 135 argv[0], argv[0], argv[0], argv[0], argv[0]); 136 return 0; 137 } 138 } 139 117 140 #if PROFILE 118 141 monitor(4, etext, profile_buf, sizeof profile_buf, 50);
Note:
See TracChangeset
for help on using the changeset viewer.