contrib: Add script name to usage error in gen_wcwidth.py

Message ID 20240104140724.3053486-1-jwakely@redhat.com
State Accepted
Headers
Series contrib: Add script name to usage error in gen_wcwidth.py |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jonathan Wakely Jan. 4, 2024, 2:06 p.m. UTC
  I intend to commit this as obvious later today.

-- >8 --

contrib/ChangeLog:

	* unicode/gen_wcwidth.py: Add sys.argv[0] to usage error.
---
 contrib/unicode/gen_wcwidth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/contrib/unicode/gen_wcwidth.py b/contrib/unicode/gen_wcwidth.py
index 02b28bcedcf..aa8d8b2cfd2 100755
--- a/contrib/unicode/gen_wcwidth.py
+++ b/contrib/unicode/gen_wcwidth.py
@@ -22,7 +22,7 @@  import sys
 import os
 
 if len(sys.argv) != 2:
-    print("usage: %s <unicode version>", file=sys.stderr)
+    print("usage: %s <unicode version>" % sys.argv[0], file=sys.stderr)
     sys.exit(1)
 unicode_version = sys.argv[1]