public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] contrib: Add script name to usage error in gen_wcwidth.py
@ 2024-01-04 14:06 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2024-01-04 14:06 UTC (permalink / raw)
  To: gcc-patches

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(-)

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]
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-04 14:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-04 14:06 [PATCH] contrib: Add script name to usage error in gen_wcwidth.py Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).