On this page:
command-line
Version: 4.1

 (require mzlib/cmdline)

Provides a command-line from that is similar to the one in scheme/cmdline, but without using keywords. The parse-command-line procedure from scheme/cmdline is re-exported directly.

(command-line program-name-expr argv-expr clause ...)

 

clause

 

=

 

(multi flag-spec ...)

 

 

|

 

(once-each flag-spec ...)

 

 

|

 

(once-any flag-spec ...)

 

 

|

 

(final flag-spec ...)

 

 

|

 

(help-labels string ...)

 

 

|

 

(args arg-formals body-expr ...+)

 

 

|

 

(=> finish-proc-expr arg-help-expr help-proc-expr

    unknown-proc-expr)

 

 

 

 

 

flag-spec

 

=

 

(flags id ... help-str ...+ body-expr ...+)

 

 

|

 

(flags => handler-expr help-expr)

 

 

 

 

 

flags

 

=

 

flag-string

 

 

|

 

(flag-string ...+)

 

 

 

 

 

arg-formals

 

=

 

id

 

 

|

 

(id ...)

 

 

|

 

(id ...+ . id)

Like command-line from scheme/cmdline, but without keywords in the syntax.