Finish integrated command-line help system.
This commit is contained in:
parent
9a438758b3
commit
d44dc759fc
2 changed files with 16 additions and 5 deletions
|
@ -46,7 +46,10 @@
|
|||
|
||||
(command-line
|
||||
print-help
|
||||
(-h "This help" () (print "help") (print-help) (print "done") (exit 0))
|
||||
(-h "This help" ()
|
||||
(print "Command-line options:")
|
||||
(print-help)
|
||||
(exit 0))
|
||||
(-a "One-argument" (x) (print "Argument x " x))
|
||||
(-b "Two arguments" (x y) (print "Arguments " x y))
|
||||
(-c "Argument lambda" (lambda (x) (print "Lambda x " x))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue