Changeset 38694 in project


Ignore:
Timestamp:
05/17/20 10:03:34 (3 weeks ago)
Author:
evhan
Message:

wiki/optimism: Quick clarification for option aliases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/optimism

    r36801 r38694  
    3232</enscript>
    3333
    34 As a special case, an item in the grammar whose first element is a list will be split into separate entries, allowing an abbreviated syntax for multiple option specifications of the same form:
     34As a special case, an item in the grammar whose first element is a list
     35will be split into separate entries. This allows the following shorthand
     36syntax for aliases, where multiple options should have the same form:
    3537
    3638<enscript highlight=scheme>
    37 (parse-command-line '(((--foo --bar --baz) . qux)))
     39(parse-command-line
     40 '(((-f --foo) . bar)))
    3841
    39 ; => (parse-command-line
    40 ;     '((--foo . qux)
    41 ;       (--bar . qux)
    42 ;       (--baz . qux)))
     42; The above is equivalent to:
     43;
     44;     (parse-command-line
     45;      '((-f    . bar)
     46;        (--foo . bar)))
    4347</enscript>
    4448
Note: See TracChangeset for help on using the changeset viewer.