12345678910111213141516171819202122 |
- ;;; Sometimes it makes sense to use the simplest means
- ;;; possible to get input from command line arguments. For
- ;;; example when you have a script, which only takes 1 or 2
- ;;; arguments, which are quite clear in their meaning from
- ;;; the context, in which the script is used. The simplest
- ;;; way in GNU Guile is using the command-line procedure.
- (import
- (except (rnrs base) let-values map)
- (only (guile)
- lambda* λ
- ;; printing
- display
- simple-format
- command-line))
- (display
- (simple-format
- #f "command line arguments: ~a\n"
- (command-line)))
|