From dfff40fba437841722e38bb2df0980f9b99c89af Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 18 Mar 2026 18:39:46 +0200 Subject: cli: show help when called without arguments --- snippets/hyperstack/hyperstack.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) mode change 100644 => 100755 snippets/hyperstack/hyperstack.rb (limited to 'snippets/hyperstack/hyperstack.rb') diff --git a/snippets/hyperstack/hyperstack.rb b/snippets/hyperstack/hyperstack.rb old mode 100644 new mode 100755 index 5cd4e21..85b766f --- a/snippets/hyperstack/hyperstack.rb +++ b/snippets/hyperstack/hyperstack.rb @@ -1950,7 +1950,18 @@ module HyperstackVM global_parser.order!(@argv) command = @argv.shift - raise Error, 'Missing command. Use create, delete, or status.' if command.nil? + if command.nil? + puts global_parser + puts + puts 'Commands:' + puts ' create [--replace] [--dry-run] [--vllm|--no-vllm] [--ollama|--no-ollama] [--model PRESET]' + puts ' delete [--vm-id ID] [--dry-run]' + puts ' status' + puts ' test' + puts ' model list' + puts ' model switch PRESET [--dry-run]' + exit 0 + end config_loader = ConfigLoader.load(global[:config_path]) state_store = StateStore.new(config_loader.config.state_file) -- cgit v1.2.3