<s> def main ( ) : <EOL> import sys <EOL> import argparse <EOL> from PyQt4 import QtCore , QtGui <EOL> import binglide . gui <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( "<STR_LIT:file>" , default = None , nargs = "<STR_LIT:?>" , type = argparse . FileType ( "<STR_LIT:rb>" ) ) <EOL> args = parser . parse_args ( ) <EOL> app = QtGui . QApplication ( sys . argv ) <EOL> binglideui = binglide . gui . BinglideUI ( ) <EOL> binglideui . show ( ) <EOL> if args . file is not None : <EOL> binglideui . read_file ( args . file ) <EOL> app . exec_ ( ) <EOL> import os <EOL> os . _exit ( <NUM_LIT:0> ) </s>
