Changeset 309 for trunk/launch/launch/main.c
- Timestamp:
- 10/30/06 11:06:21 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/launch/launch/main.c
r308 r309 17 17 18 18 #define BROKEN_AUTHORIZATION 1 19 #define BROKEN_ARGUMENTS 1 19 20 #define kComponentSignatureString "launch" 20 21 … … 36 37 const char *APP_NAME; 37 38 38 #define VERSION "1.1 b1"39 #define VERSION "1.1" 39 40 40 41 #define STRBUF_LEN 1024 … … 95 96 96 97 void usage() { 97 fprintf(stderr, "usage: %s [-npswbmhCXLU] [-c creator] [-i bundleID] [-u URL] [-a name] [-o argument] [item ...] [-]\n" 98 " or: %s [-npflswbmhCXLU] [-o argument] item ...\n", APP_NAME, APP_NAME); 98 fprintf(stderr, "usage: %s [-npswbmhCXLU] [-c creator] [-i bundleID] [-u URL] [-a name|path] [-o argument] [item ...] [-]\n" 99 " or: %s [-npflswbmhCXLU] " 100 #ifndef BROKEN_ARGUMENTS 101 "[-o argument] " 102 #endif 103 "item ...\n", APP_NAME, APP_NAME); 99 104 fprintf(stderr, 100 105 " -n print matching paths/URLs instead of opening them\n" … … 117 122 " -u URL open application at file:// URL (NOT RECOMMENDED for scripts)\n" 118 123 " -a name|path match application by name/path (NOT RECOMMENDED, very fragile)\n" 124 #ifndef BROKEN_ARGUMENTS 119 125 " -o argument pass argument to application (may be specified more than once)\n" 126 #endif 120 127 "'document' may be a file, folder, or disk - whatever the application can open.\n" 121 128 "'item' may be a file, folder, disk, or URL.\n\n"); … … 416 423 appSpecified = true; 417 424 break; 425 #ifndef BROKEN_ARGUMENTS 418 426 case 'o': 419 427 if (LPARAMS.argv == NULL) … … 422 430 CFStringCreateWithCString(NULL, optarg, kCFStringEncodingUTF8)); 423 431 break; 432 #endif 424 433 default: usage(); 425 434 }
Note:
See TracChangeset
for help on using the changeset viewer.