Initialize the long_format variable in tool.py
--- a/Lib/xattr/tool.py
+++ b/Lib/xattr/tool.py
@@ -38,6 +38,7 @@
     except getopt.GetoptError, e:
         usage(e)
 
+    long_format = False
     for opt, arg in optargs:
         if opt in ("-h", "--help"):
             usage()
