summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2006-01-06 00:21:13 +0000
committerBob Ippolito <bob@redivi.com>2006-01-06 00:21:13 +0000
commit378fcef65d1d60cc839ac46facbc3945b713cbd3 (patch)
tree94d592c7ce971a91ae523571124e4287d0d94a08
parent304c5e9dec9e4d05d8ee91686b26107de75b75c0 (diff)
downloadxattr-378fcef65d1d60cc839ac46facbc3945b713cbd3.tar.gz
name
-rwxr-xr-xLib/xattr/tool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/xattr/tool.py b/Lib/xattr/tool.py
index c2bc0ec..c351ad8 100755
--- a/Lib/xattr/tool.py
+++ b/Lib/xattr/tool.py
@@ -19,7 +19,8 @@ def usage(e=None):
print e
print ""
- print "usage: %s [-l] file [attr_name [attr_value]]" % (sys.argv[0],)
+ name = os.path.basename(sys.argv[0])
+ print "usage: %s [-l] file [attr_name [attr_value]]" % (name,)
print " -l: print long format (attr_name: attr_value) when listing xattrs"
print " With no optional arguments, lists the xattrs on file"
print " With attr_name only, lists the contents of attr_name on file"