parameters: (args)
return_statement: return 0
docstring: insert command
docstring_summary: insert command
docstring_tokens: insert command
function: def insert_cmd(args):
    """insert command"""
    (username, token) = load_auth_token()
    client = HostDirectory(username, token)
  
    host = Host()
    for arg in args:
      if arg.startswith("--hostId="):
        host.host_id = arg[len("--hostId="):]
      elif arg.startswith("--hostName="):
        host.host_name = arg[len("--hostName="):]
      elif arg.startswith("--publicKey="):
        host.public_key = arg[len("--publicKey="):]
      elif arg.startswith("--jabberId="):
        host.jabber_id = arg[len("--jabberId="):]
      else:
        return usage()
  
    client.add_host(host)
    return 0
function_tokens: def insert_cmd ( args ) : ( username , token ) = load_auth_token ( ) client = HostDirectory ( username , token ) host = Host ( ) for arg in args : if arg . startswith ( "--hostId=" ) : host . host_id = arg [ len ( "--hostId=" ) : ] elif arg . startswith ( "--hostName=" ) : host . host_name = arg [ len ( "--hostName=" ) : ] elif arg . startswith ( "--publicKey=" ) : host . public_key = arg [ len ( "--publicKey=" ) : ] elif arg . startswith ( "--jabberId=" ) : host . jabber_id = arg [ len ( "--jabberId=" ) : ] else : return usage ( ) client . add_host ( host ) return 0