aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2025-06-17 10:08:05 +0100
committerArun Isaac2025-06-17 10:09:34 +0100
commit8c2e681cb90e5f319d9e869a75fd200cce4978ed (patch)
tree6c51230ab6bbc017dd033e52dd35f57dc278f324
parent256903fc103ff23706b41b73e06eac8ece28fac8 (diff)
downloadravanan-8c2e681cb90e5f319d9e869a75fd200cce4978ed.tar.gz
ravanan-8c2e681cb90e5f319d9e869a75fd200cce4978ed.tar.lz
ravanan-8c2e681cb90e5f319d9e869a75fd200cce4978ed.zip
bin: Print usage when arguments are not matched.HEADmain
* bin/ravanan (print-short-usage): New function. (main): Print usage when arguments are not matched.
-rwxr-xr-xbin/ravanan11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/ravanan b/bin/ravanan
index 449d8db..f765915 100755
--- a/bin/ravanan
+++ b/bin/ravanan
@@ -99,6 +99,12 @@ exec guile --no-auto-compile -e main -s "$0" "$@"
(define (invalid-option opt name arg result)
(error "Invalid option" name))
+(define (print-short-usage program)
+ (format (current-error-port)
+ "Usage: ~a [OPTIONS] CWL-WORKFLOW INPUTS
+Run CWL-WORKFLOW with INPUTS.~%"
+ program))
+
(define (print-usage program)
(format (current-error-port)
"Usage: ~a [OPTIONS] CWL-WORKFLOW INPUTS
@@ -283,4 +289,7 @@ files that have the token in the @verbatim{SLURM_JWT=token} format."
outputs)
outputs)
#:pretty #t))
- (newline)))))))
+ (newline))
+ (_
+ (print-short-usage program)
+ (exit #f)))))))