parameters: (argv)
return_statement: return 0
docstring: Main entry point
  
          Args:
          argv (list): List of strings giving command line arguments The full absolute path to the file to wrap is
          mandatory.
docstring_summary: Main entry point
docstring_tokens: Main entry point
function: def main(argv):
      """
          Main entry point
  
          Args:
          argv (list): List of strings giving command line arguments The full absolute path to the file to wrap is
          mandatory.
      """
      argv.reverse()
      to_wrap = argv[0]
      if not os.path.exists(to_wrap):
          raise ValueError("%s : Does not exist." % to_wrap)
  
      with open(to_wrap, "r+", encoding="UTF-8") as f:
          existing = f.read()
          f.seek(0)
          # Add initial lines
          for line in lines_to_pre_append():
              f.write(line)
          f.write(existing)
  
      return 0
function_tokens: def main ( argv ) : argv . reverse ( ) to_wrap = argv [ 0 ] if not os . path . exists ( to_wrap ) : raise ValueError ( "%s : Does not exist." % to_wrap ) with open ( to_wrap , "r+" , encoding = "UTF-8" ) as f : existing = f . read ( ) f . seek ( 0 ) # Add initial lines for line in lines_to_pre_append ( ) : f . write ( line ) f . write ( existing ) return 0