From: Tobias Ulmer Date: Mon, 24 Oct 2016 18:20:25 +0000 (+0200) Subject: ls-project: don't just register, handle cmd line options X-Git-Tag: e2factory-2.3.15rc1~55 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=60b38dc63e4830f2c3f6bbbbae83ffce295e6739;p=e2factory.git ls-project: don't just register, handle cmd line options Signed-off-by: Tobias Ulmer --- diff --git a/local/e2-ls-project.lua b/local/e2-ls-project.lua index d5e8139..5b08170 100644 --- a/local/e2-ls-project.lua +++ b/local/e2-ls-project.lua @@ -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)