]> kaliko git repositories - mpd-sima.git/blobdiff - sima/utils/startopt.py
New option to disable use of mbid
[mpd-sima.git] / sima / utils / startopt.py
index 84cd4e74be3dbfeb0ed25f4ec34f6f6e9f08de5e..ef2032c13b0f013c1fecc3a5b0fd4ee21c3e7bc3 100644 (file)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2009, 2010, 2011, 2012, 2013 Jack Kaliko <kaliko@azylum.org>
+# Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014 Jack Kaliko <kaliko@azylum.org>
 #
 #  This file is part of sima
 #
 #
 #
 
-import sys
 from argparse import (ArgumentParser, SUPPRESS)
 
 
-from .utils import Obsolete, Wfile, Rfile, Wdir
+from .utils import Wfile, Rfile, Wdir
 
 USAGE = """USAGE:  %prog [--help] [options]"""
 DESCRIPTION = """
@@ -60,7 +59,7 @@ OPTS = [
         'type': str,
         'dest': 'verbosity',
         'choices': ['debug', 'info', 'warning', 'error'],
-        'help': 'file to log message to, default is stdout/stderr'},
+        'help': 'Log messages verbosity, default is info'},
     {
         'sw': ['-p', '--pid'],
         'dest': 'pidfile',
@@ -115,6 +114,7 @@ class StartOpt(object):
     """
 
     def __init__(self, script_info,):
+        self.parser = None
         self.info = dict(script_info)
         self.options = dict()
         self.main()