Fixme

Discover which code snippets in open source project is need to be fixed.

Search Snippets

Upload Tips

We have provided a tool to collect code snippets with FIXME comments and upload them here.

See more

Languages

lc-soft
normal (2 ratings)  •  Last indexed on

use command-line options parser to refactor it

101
102
103
104
105
106
107
if __name__ == '__main__':
    argv = sys.argv
    if len(argv) > 2:
        if argv[1] == 'digg':
            digg(sys.argv[2])
        elif argv[1] == 'upload':
            upload(argv[2], argv[3], argv[4], argv[5])