diff options
author | Marius <mariausol@gmail.com> | 2013-03-21 15:00:17 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-03-21 15:00:17 +0200 |
commit | 6bb39561d4571fb85aac56a686b837a9f3c910cd (patch) | |
tree | 87f9b55ac771b742532fec258c637c0b15ec7dae /scripts/context/lua/mtx-unzip.lua | |
parent | 41df6a896ad3ab1d8bb6286423e9540b2b34f576 (diff) | |
download | context-6bb39561d4571fb85aac56a686b837a9f3c910cd.tar.gz |
beta 2013.03.21 13:42
Diffstat (limited to 'scripts/context/lua/mtx-unzip.lua')
-rw-r--r-- | scripts/context/lua/mtx-unzip.lua | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/scripts/context/lua/mtx-unzip.lua b/scripts/context/lua/mtx-unzip.lua index 645863426..02d9676bc 100644 --- a/scripts/context/lua/mtx-unzip.lua +++ b/scripts/context/lua/mtx-unzip.lua @@ -11,9 +11,23 @@ if not modules then modules = { } end modules ['mtx-unzip'] = { local format = string.format local helpinfo = [[ ---list list files in archive ---junk flatten unzipped directory structure ---extract extract files +<?xml version="1.0"?> +<application> + <metadata> + <entry name="name">mtx-unzip</entry> + <entry name="detail">Simple Unzipper</entry> + <entry name="version">0.10</entry> + </metadata> + <flags> + <category name="basic"> + <subcategory> + <flag name="list"><short>list files in archive</short></flag> + <flag name="junk"><short>flatten unzipped directory structure</short></flag> + <flag name="extract"><short>extract files</short></flag> + </subcategory> + </category> + </flags> +</application> ]] local application = logs.application { @@ -109,6 +123,8 @@ if environment.arguments["h"] or environment.arguments["help"] then application.help() elseif environment.arguments["l"] or environment.arguments["list"] then scripts.unzipper.list(zipfile) +elseif environment.arguments["exporthelp"] then + application.export(environment.arguments["exporthelp"],environment.files[1]) elseif environment.files[1] then -- implicit --extract scripts.unzipper.extract(zipfile) else |