]> git.e2factory.org Git - e2factory.git/commitdiff
ls-project: don't just register, handle cmd line options
authorTobias Ulmer <tu@emlix.com>
Mon, 24 Oct 2016 18:20:25 +0000 (20:20 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2-ls-project.lua

index d5e8139598f2316bea2365c35941c98b5a62793d..5b08170be8ff3cd9e27d58cf2ab18903a7b4fd11 100644 (file)
@@ -56,6 +56,12 @@ local function e2_ls_project(arg)
         error(arguments)
     end
 
+    -- get build mode from the command line
+    local build_mode, re = policy.handle_commandline_options(opts, true)
+    if not build_mode then
+        error(re)
+    end
+
     info, re = e2tool.collect_project_info(info)
     if not info then
         error(re)