From 35096e45934092bf53cd77afbc5abfab59a6148d Mon Sep 17 00:00:00 2001 From: Johannes Rudolph <johannes.rudolph@gmx.com> Date: Mon, 20 Mar 2017 19:11:24 +0100 Subject: [PATCH] add default help output --- hoodselector/luasrc/usr/sbin/hoodselector | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hoodselector/luasrc/usr/sbin/hoodselector b/hoodselector/luasrc/usr/sbin/hoodselector index 129c0e4..3b4d83e 100755 --- a/hoodselector/luasrc/usr/sbin/hoodselector +++ b/hoodselector/luasrc/usr/sbin/hoodselector @@ -74,7 +74,13 @@ if arg[1] ~= nil then io.stderr:write("Hoodfile Path not in Config") else io.stderr:write("Hoodfile Path: " .. uci:get('hoodselector', 'hoodselector', 'hoodfile')) - end + end + else + io.stderr:write("Hoodselector usage: \n\n") + io.stderr:write("hoodselector \t\t runs the Hoodselector\n") + io.stderr:write("hoodselector enable \t enable the Hoodselector\n") + io.stderr:write("hoodselector disable \t disable the Hoodselector\n") + io.stderr:write("hoodselector hoodfile \t shows the path of the Hoodfile\n") end os.exit(0) end -- GitLab