From 4f757fc0a4d4af067e0d22ad4020c1b18cc3fd24 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 19 Dec 2025 19:46:27 +0000 Subject: ccwl: Add #:separate? argument to prefixed arguments. --- doc/ccwl.skb | 10 +++++++++- doc/unseparated-prefix-arguments.scm | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 doc/unseparated-prefix-arguments.scm (limited to 'doc') diff --git a/doc/ccwl.skb b/doc/ccwl.skb index 9001f20..7096711 100644 --- a/doc/ccwl.skb +++ b/doc/ccwl.skb @@ -1,5 +1,5 @@ ;;; ccwl --- Concise Common Workflow Language -;;; Copyright © 2021, 2023–2024 Arun Isaac +;;; Copyright © 2021, 2023–2025 Arun Isaac ;;; ;;; This file is part of ccwl. ;;; @@ -363,6 +363,14 @@ prefix. For example, in the following example, we associate the input ,(code "output_filename") to the prefix ,(code "-o"). Notice the parentheses around ,(code "-o output_filename").] (scheme-source "doc/prefix-arguments.scm"))) + (section :title [Unseparated prefix arguments] + :ident "section-unseparated-prefix-arguments" + (p [Some programs don't like it when you separate arguments from +their prefixes. You can specify this using the ,(code [#:separate?]) +flag.] + (scheme-source "doc/unseparated-prefix-arguments.scm") + [This is executed as ,(samp [gcc foo.c -ofoo]), rather than +as ,(samp [gcc foo.c -o foo]).])) (section :title [Array types] :ident "section-array-types" (p [ccwl supports array types using the following syntax.] diff --git a/doc/unseparated-prefix-arguments.scm b/doc/unseparated-prefix-arguments.scm new file mode 100644 index 0000000..9e1e767 --- /dev/null +++ b/doc/unseparated-prefix-arguments.scm @@ -0,0 +1,2 @@ +(command #:inputs (source #:type File) (output_filename #:type string) + #:run "gcc" source ("-o" output_filename #:separate? #f)) -- cgit 1.4.1