]> git.e2factory.org Git - e2factory.git/commitdiff
e2: call usage() with the proper exit code
authorTobias Ulmer <tu@emlix.com>
Fri, 1 Feb 2013 17:52:46 +0000 (18:52 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:14 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
global/e2.lua

index 9cd57e023c80c2f9c7443b6a44e5008278ae00d5..0fbca624d8d422072b452fa0531eef15149f267b 100644 (file)
@@ -67,7 +67,7 @@ elseif e2call.basename == "e2" then
     e2call.toolname = "e2"
     local opts = e2option.parse(arg)
     if #opts == 0 then
-        e2option.usage()
+        e2option.usage(1)
     end
     e2lib.finish(0)
 else