From e6159e4f0d1275ed3266ab662bf5a2843ba939a5 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 18 Mar 2025 01:17:24 +0100 Subject: [PATCH] Move stow to bin and add argument count check --- stow => bin/bin/stow | 5 +++++ 1 file changed, 5 insertions(+) rename stow => bin/bin/stow (95%) diff --git a/stow b/bin/bin/stow similarity index 95% rename from stow rename to bin/bin/stow index b604e7c..283440b 100755 --- a/stow +++ b/bin/bin/stow @@ -16,6 +16,11 @@ $action = 'stow'; $backup = $force = false; array_shift($argv); // we don't care about the script name +if(count($argv) === 0) { + line("Usage: stow [-u] [-b] [-f] "); + exit(1); +} + while (str_starts_with($argv[0], '-')) { $option = substr($argv[0], 1); switch ($option) {