INNER CODE UNIT · Python

__init__

netkiller/shell · bin/oscm.py:30

    def __init__(self):

        self.config = configparser.ConfigParser()
        self.config.read('config.ini')

        usage = "usage: %prog [option] list|install|remove app"
        self.parser = OptionParser(
            usage, version="%prog 1.0.0", description='OS configure management')

#        self.parser.add_option("-p", "--path", dest='path', default='Book',
#                               help="The path of library", metavar='/var/book/')
#        self.parser.add_option(
#            '-f', '--force', action="store_true", default=False, help="force sendmail")
#        self.parser.add_option("-b", "--book", dest='book', default=None,
#                               help="book path", metavar='/path/to/book.mobi')
#        self.parser.add_option("-g", "--group", dest='group', default='kindle',
#                               help="User group", metavar='{kindle|phone|ipad|email|other}')
#        self.parser.add_option('-a', '--all', action="store_true",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…