<s> """<STR_LIT>""" <EOL> import sys <EOL> from subprocess import call <EOL> from docopt import docopt <EOL> from dokku_client import __version__ <EOL> from dokku_client . command_tools import load_commands , command_by_name , apply_defaults , root_doc <EOL> def main ( ) : <EOL> commands = load_commands ( ) <EOL> args = docopt ( root_doc ( ) , version = '<STR_LIT>' % __version__ , options_first = True ) <EOL> command_name = args [ '<STR_LIT>' ] or '<STR_LIT>' <EOL> if command_name == '<STR_LIT:version>' : <EOL> exit ( call ( [ '<STR_LIT>' , '<STR_LIT>' ] ) ) <EOL> command = command_by_name ( command_name , commands ) <EOL> if not command : <EOL> sys . stderr . write ( "<STR_LIT>" ) <EOL> exit ( <NUM_LIT:1> ) <EOL> else : <EOL> command_args = docopt ( command . doc ) <EOL> command_args = apply_defaults ( command_args ) <EOL> if command . check_config : <EOL> if not command_args . get ( '<STR_LIT>' , None ) : <EOL> sys . stderr . write ( "<STR_LIT>" ) <EOL> exit ( <NUM_LIT:1> ) <EOL> if not command_args . get ( '<STR_LIT>' , None ) : <EOL> sys . stderr . write ( "<STR_LIT>" ) <EOL> exit ( <NUM_LIT:1> ) <EOL> command . args = command_args <EOL> command . main ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
