libs/lpk: Updated CLI
[project/luci.git] / libs / lpk / luasrc / lpk / util.lua
index 50b33e1..95bdb96 100644 (file)
@@ -36,4 +36,24 @@ function getopt( arg, options )
            end
        end
        return tab, args
+end
+
+function splash()
+       require("luci.lpk")
+       luci.util.perror(string.format("%s v%s\n%s",
+        luci.lpk.__appname__, luci.lpk.__version__, luci.lpk.__cpyrght__))
+       luci.util.perror([[
+       
+Usage:
+ lpk [options] <command> [arguments]
+ lpk [options] install|remove pkg1 [pkg2] [...] [pkgn]
+
+Commands:
+ install       -       Install packages
+ remove                -       Remove packages
+ purge         -       Remove packages and their configuration files
+Options:
+ --force-depends       -       Ignore unresolvable dependencies
+]])
 end
\ No newline at end of file