parameters: (self, argv)
docstring: Handle the command-line execution for cog.
docstring_summary: Handle the command-line execution for cog.
docstring_tokens: Handle the command - line execution for cog .
function: def main(self, argv):
          """ Handle the command-line execution for cog.
          """
  
          try:
              self.callableMain(argv)
              return 0
          except CogUsageError as err:
              self.prerr(err)
              self.prerr("(for help use -?)")
              return 2
          except CogGeneratedError as err:
              self.prerr("Error: %s" % err)
              return 3
          except CogError as err:
              self.prerr(err)
              return 1
          except:
              traceback.print_exc(None, self.stderr)
              return 1
function_tokens: def main ( self , argv ) : try : self . callableMain ( argv ) return 0 except CogUsageError as err : self . prerr ( err ) self . prerr ( "(for help use -?)" ) return 2 except CogGeneratedError as err : self . prerr ( "Error: %s" % err ) return 3 except CogError as err : self . prerr ( err ) return 1 except : traceback . print_exc ( None , self . stderr ) return 1