From 7a4bf8d3d83b7dceebc2ae6c6bbe47e7e46a2432 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 7 Sep 2024 00:45:55 -0400 Subject: Use exit() --- examples/tomodeps.tm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/tomodeps.tm b/examples/tomodeps.tm index 34216806..032a87b7 100644 --- a/examples/tomodeps.tm +++ b/examples/tomodeps.tm @@ -127,11 +127,10 @@ func draw_tree(file:Text, dependencies:{Text:{Text}}): func main(files:[Text]): if files.length == 0: - say(" + exit(1, message=" Please provide at least one file! $_USAGE ") - return for file in files: if not file:matches($/{..}.tm/): -- cgit v1.2.3