aboutsummaryrefslogtreecommitdiff
path: root/examples/tomodeps.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-07 00:45:55 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-07 00:45:55 -0400
commit7a4bf8d3d83b7dceebc2ae6c6bbe47e7e46a2432 (patch)
treec73280de28e44d4adfdff1709b8b516c001d0dd5 /examples/tomodeps.tm
parentcf7ea6fbef55e217da5289b80b6551737e534083 (diff)
Use exit()
Diffstat (limited to 'examples/tomodeps.tm')
-rw-r--r--examples/tomodeps.tm3
1 files changed, 1 insertions, 2 deletions
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/):