CLIM mail archive

[Prev][Next][Index][Thread]

with-accept-help in command args



    Date: Tue, 17 Dec 1991 17:21 EST
    From: Curt Eggemeyer <curt@eraserhead.jpl.nasa.gov>

    Can you influence the help string for command line arguments like regular
    accept invokations (if so how)?

    ie: You can do this (assume in CLIM)

    (with-accept-help ((:top-level-help "My Help Message"))
	    (accept 'string))

    what about ...

    (define-my-application-command (com-my-string-input :name t) ((strg 'string))
	    ...)

    How can I change the help string to be what I want when I hit the help key
    for the strg arg?

I don't think there is a good way to use WITH-ACCEPT-HELP in the way you
want.  You do have two alternatives, though.  The first is to define
your own presentation type, MY-STRING, that describes itself
differently.  The second (and possibly better) way is to use the
:DESCRIPTION meta-option in the presentation type:

  (define-my-application-command (com-my-string-input :name t)
     ((strg '((string) :description "strinka-dinka-doo")))
   ...)

0,,

References:

Main Index | Thread Index