From 3df7910290dd9b6f734f74772c9e2c0255df9b68 Mon Sep 17 00:00:00 2001 From: Frederick Meisel Date: Fri, 23 Feb 2024 19:17:38 +0100 Subject: [PATCH] help text overhaul --- shortcut.lua | 5 +++-- updater.lua | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shortcut.lua b/shortcut.lua index 96c9ba4..0ed1211 100644 --- a/shortcut.lua +++ b/shortcut.lua @@ -1,5 +1,6 @@ local args = {...} -local helpText = "This is a tool for displaying and managing your Power cells and generators." +local helpText = "This is a tool for displaying and managing your Power cells and generators.\n".. + "At the moment there only is an updater: type 'powerman update -h' for more info!" if #args<1 then @@ -18,6 +19,6 @@ elseif args[1] == "update" then os.execute("/usr/PowerManager/updater.lua -a") return else - print('"'..args[1]..'" - Bad argument. you can use: powerman update ') + print('"'..args[1]..'" - Bad argument. you can use: powerman -h') return end \ No newline at end of file diff --git a/updater.lua b/updater.lua index 0262608..86e4fa7 100644 --- a/updater.lua +++ b/updater.lua @@ -214,6 +214,7 @@ end if #args<1 then print("No Arguments given. Manual process...") manualUpdate() + automaticInstall() return end