<s> import sys <EOL> from flashcardstudy import errors <EOL> from flashcardstudy . help import gethelp <EOL> from flashcardstudy . cliparser import parse , ARGS <EOL> from flashcardstudy . processor import processor <EOL> from gui . main import flashCardStudyGUI <EOL> def flashcard ( ) : <EOL> if len ( sys . argv ) == <NUM_LIT:1> : <EOL> errors . id ( <NUM_LIT:0> ) <EOL> elif len ( sys . argv ) == <NUM_LIT:2> and sys . argv [ <NUM_LIT:1> ] == '<STR_LIT>' or sys . argv [ <NUM_LIT:1> ] == '<STR_LIT>' : <EOL> gethelp ( ) <EOL> elif len ( sys . argv ) == <NUM_LIT:2> and sys . argv [ <NUM_LIT:1> ] == '<STR_LIT>' : <EOL> flashCardStudyGUI ( ) <EOL> elif len ( sys . argv ) >= <NUM_LIT:1> : <EOL> arguments = parse ( sys . argv [ <NUM_LIT:1> : ] ) <EOL> processor ( arguments ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> flashcard ( ) </s>
