from .BloArticle import BloArticle


class Blo:
    def __init__(self):
        pass

if __name__ == '__main__':
    # TODO: implement main routine of Blo.
    # blo [-c config_file] markdown_file.md
    # -- if no -c option then load config file from default path (current directory).
    # ---- if no configuration file on current directory blo said error.
    # 1. init database (database name from environment variable or configuration file)
    # 2. parse markdown file from command line argument.
    # -- if command line argument path is directory then it will do recursive in directory.
    # 3. generate html and commit to database
    pass

@@ -1,12 +1,48 @@
+import configparser%0Aimport optparse%0A
 from .BloArt
@@ -142,16 +142,415 @@
 ain__':%0A
+    parser = optparse.OptionParser(%22usage: %25prog %5Boption%5D markdown_file.md%22)%0A    parser.add_option(%22-c%22, %22--config%22, dest=%22config_file%22,%0A                      default=%22./blo.cfg%22, type=%22string%22, help=%22specify configuration file path to run on%22)%0A    (options, args) = parser.parse_args()%0A    if len(args) != 1:%0A        parser.error(%22incorrect number of arguments%22)%0A    cfg_file = options.config_file%0A
     # TO

Implement command line option parse program.