Cleaned up some useless imports and moved autoser_parser actual argument
parsing to be invoked by autoserv on startup instead of automatically on
import (and thus parsing/eating sys.argv from all other standalone
programs that somehow imported autoserv_parser).
Signed-off-by: Mihai Rusu <dizzy@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2801 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index aef0754..a3d5a23 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -139,6 +139,7 @@
def main():
# grab the parser
parser = autoserv_parser.autoserv_parser
+ parser.parse_args()
if len(sys.argv) == 1:
parser.parser.print_help()