From 5c66c02238cd79ab0dfdd7a3fad60af83dc04103 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Fri, 10 Nov 2023 09:09:00 +0100 Subject: [PATCH] FIX: add usage diagnostic --- contrib/faces/github2card.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/faces/github2card.py b/contrib/faces/github2card.py index c88321d..1cbcca2 100755 --- a/contrib/faces/github2card.py +++ b/contrib/faces/github2card.py @@ -1,7 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # github2card.py -# Copyright (C) 2016 Jan-Piet Mens +# Copyright (C) 2016-2023 Jan-Piet Mens # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -79,5 +79,8 @@ def user_profile(username): if __name__ == '__main__': + if len(sys.argv) != 2: + print("Usage: %s githubuser" % sys.argv[0], file=sys.stderr) + sys.exit(2) (username) = sys.argv[1] user_profile(username)