]> Cypherpunks repositories - dsc.git/commitdiff
Fail if unknown command specified
authorSergey Matveev <stargrave@stargrave.org>
Wed, 10 Dec 2025 11:16:23 +0000 (14:16 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 10 Dec 2025 11:16:23 +0000 (14:16 +0300)
dsc

diff --git a/dsc b/dsc
index 415f17fe0f30469986ff67d76937491264cc8243c0b7134d9a187741fea0bcbc..19326dbf71415bac3a7dce3603d6138ff773e1e316a8600c911361ac7c9cda14 100755 (executable)
--- a/dsc
+++ b/dsc
@@ -402,6 +402,10 @@ switch [lindex $argv 0] {
             puts [file normalize $Stash/$opt]
         }
     }
+    default {
+        puts stderr "unknown cmd"
+        exit 1
+    }
 }
 
 # vim: ft=tcl