Re: How can i make executable guile file to process command line arguments?

2022-08-18 Thread Zelphir Kaltstahl
Hello Jacob, On 8/18/22 16:01, Jacob Hrbek wrote: I have this file which i use to interact with a version controlled repository similar to a Makefile. How can i make it work with e.g. `./file.scm echo wheee` -> Will execute the `(define (echo msg) ...)` and output `wheee` in the terminal? F

Re: How can i make executable guile file to process command line arguments?

2022-08-18 Thread Olivier Dion via General Guile related discussions
On Thu, 18 Aug 2022, Jacob Hrbek wrote: > I have this file which i use to interact with a version controlled > repository similar to a Makefile. > > How can i make it work with e.g. `./file.scm echo wheee` -> Will execute > the `(define (echo msg) ...)` and output `wheee` in the terminal? You c

How can i make executable guile file to process command line arguments?

2022-08-18 Thread Jacob Hrbek
I have this file which i use to interact with a version controlled repository similar to a Makefile. How can i make it work with e.g. `./file.scm echo wheee` -> Will execute the `(define (echo msg) ...)` and output `wheee` in the terminal? FWIW preferably i want it to work like `./file.scm ec