Ignore:
Timestamp:
10/30/06 11:06:21 (14 years ago)
Author:
Nicholas Riley
Message:

VERSION: Updated for 1.1.

main.c: Disabled -o since it doesn't work.

launch.1: Updated for 1.1. Added description of -a which had been
missing (oops).

README: Updated for 1.1. Turned out the Resorcerer example is still
fine (though rather out of date contextually, oh well.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/launch/launch/main.c

    r308 r309  
    1717
    1818#define BROKEN_AUTHORIZATION 1
     19#define BROKEN_ARGUMENTS 1
    1920#define kComponentSignatureString "launch"
    2021
     
    3637const char *APP_NAME;
    3738
    38 #define VERSION "1.1b1"
     39#define VERSION "1.1"
    3940
    4041#define STRBUF_LEN 1024
     
    9596
    9697void 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);
    99104    fprintf(stderr,
    100105        "  -n            print matching paths/URLs instead of opening them\n"
     
    117122        "  -u URL        open application at file:// URL (NOT RECOMMENDED for scripts)\n"
    118123        "  -a name|path  match application by name/path (NOT RECOMMENDED, very fragile)\n"
     124#ifndef BROKEN_ARGUMENTS
    119125        "  -o argument   pass argument to application (may be specified more than once)\n"
     126#endif
    120127        "'document' may be a file, folder, or disk - whatever the application can open.\n"
    121128        "'item' may be a file, folder, disk, or URL.\n\n");
     
    416423            appSpecified = true;
    417424            break;
     425#ifndef BROKEN_ARGUMENTS
    418426        case 'o':
    419427            if (LPARAMS.argv == NULL)
     
    422430                               CFStringCreateWithCString(NULL, optarg, kCFStringEncodingUTF8));
    423431            break;
     432#endif
    424433        default: usage();
    425434        }
Note: See TracChangeset for help on using the changeset viewer.