Changes between Initial Version and Version 1 of Ticket #2024, comment 17


Ignore:
Timestamp:
Jul 10, 2025, 5:01:22 PM (4 months ago)
Author:
Greg Couch

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2024, comment 17

    initial v1  
    1 {{{
    21OK I guess I see what you are saying, it is just an illustration of the sentence I did not understand.
    32
     
    1716
    1817Elaine
    19 
    20 
    21 
    22 >>> https://www.cgl.ucsf.edu/home/meng/chimerax/vdocs/user/commands/alias.html#optional
    23 >> On Jul 7, 2025, at 11:00\u202fAM, Greg Couch <gregc@cgl.ucsf.edu> wrote:
    24 >>
    25 >> Close.  The $[stuff$] are optional sections/expansions of the alias.   They are included the alias expansion only if all of the $n arguments inside the optional section are present.
    26 >>
    27 >> Changing your example a little:
    28 >>
    29 >>    alias myzone zone clear; zone $1 $[residueDistance $2 label $3$]
    30 >>
    31 >> would require that both $2 and $3 be given for the optional section to be expanded.
    32 >>
    33 >> To figure out which $n arguments to present as optional in the usage of the alias, the highest numbered $n argument that is outside of the optional sections is considered to be the last required argument.
    34 >>
    35 >>    -- Greg
    36 >>
    37 >> On 7/7/2025 10:44 AM, Elaine Meng wrote:
    38 >>> Hi Greg,
    39 >>> does this explanation of the optional arguments seem OK?
    40 >>>
    41 >>> <https://www.cgl.ucsf.edu/home/meng/chimerax/vdocs/user/commands/alias.html#optional>
    42 >>>
    43 >>> I didn't understand this sentence in your presentation slides
    44 >>>        \u2022 an optional part is only included if all of the alias arguments referenced are given
    45 >>>
    46 >>> ... but maybe the last part of the example I put in the documentation (link above) covers it...
    47 >>> Thanks,
    48 >>> Elaine
    49 }}}