]> git.e2factory.org Git - e2factory.git/commitdiff
policy: document handle_commandline_options
authorTobias Ulmer <tu@emlix.com>
Mon, 22 Jan 2018 17:29:26 +0000 (18:29 +0100)
committerTobias Ulmer <tu@emlix.com>
Mon, 10 Dec 2018 17:00:11 +0000 (18:00 +0100)
local/policy.lua

index 6ff17bea626becfe4f5ad65379bd7f8b864216c5..cd32a6454bc4fb6f1a61236252b039cf06761a07 100644 (file)
@@ -202,8 +202,15 @@ function policy.register_commandline_options()
     Enabled by default in 'release' mode.]])
 end
 
----
+--- Handle overall build modes.
+-- @param opts e2option table.
+-- @param use_default Use default build mode if none is specified.
+-- @return mode table or false on error.
+-- @return Error on failure.
 function policy.handle_commandline_options(opts, use_default)
+    assertIsTable(opts)
+    assertIsBoolean(use_default)
+
     local default_build_mode_name = "tag"
     local nmodes = 0
     local mode = false