Changeset 15159


Ignore:
Timestamp:
Dec 29, 2011, 12:20:04 PM (8 years ago)
Author:
gb
Message:

Conditionalize out support for treating a single command-line
argument as an image name. This is a minor incompatible change,
but relieves some users of the stigma and shame of writing shell
script wrappers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/pmcl-kernel.c

    r15093 r15159  
    10891089  }
    10901090  fprintf(dbgout, "usage: %s <options>\n", program_name);
     1091#ifdef SINGLE_ARG_SHORTHAND
    10911092  fprintf(dbgout, "\t or %s <image-name>\n", program_name);
     1093#endif
    10921094  fprintf(dbgout, "\t where <options> are one or more of:\n");
    10931095  if (other_args && *other_args) {
     
    18951897
    18961898  program_name = argv[0];
     1899#ifdef SINGLE_ARG_SHORTHAND
    18971900  if ((argc == 2) && (*argv[1] != '-')) {
    18981901#ifdef WINDOWS
     
    19061909#endif
    19071910  } else {
     1911#endif  /* SINGLE_ARG_SHORTHAND */
    19081912    process_options(argc,argv,utf_16_argv);
    1909   }
     1913#ifdef SINGLE_ARG_SHORTHAND
     1914  }
     1915#endif
    19101916  if (lisp_heap_gc_threshold != DEFAULT_LISP_HEAP_GC_THRESHOLD) {
    19111917    lisp_heap_threshold_set_from_command_line = true;
Note: See TracChangeset for help on using the changeset viewer.