24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
usage
get-args
print-args
any-defined?
help
)
(import scheme chicken data-structures extras posix ports files)
(use srfi-69 srfi-1)
(define arg-hash (make-hash-table))
(define help "")
(define (get-arg arg . default)
(if (null? default)
(hash-table-ref/default arg-hash arg #f)
|
>
>
>
>
>
|
|
>
>
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
usage
get-args
print-args
any-defined?
help
)
(import
scheme
chicken.base
chicken.process-context
;; scheme
;; chicken data-structures extras posix ports files
srfi-69
srfi-1
)
(define arg-hash (make-hash-table))
(define help "")
(define (get-arg arg . default)
(if (null? default)
(hash-table-ref/default arg-hash arg #f)
|