diff options
-rwxr-xr-x | Lib/xattr/tool.py | 3 |
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" |