From 1384cc3f72d01e73c1222954269b5a74e81fe6ea Mon Sep 17 00:00:00 2001 From: boltgolt Date: Sun, 3 Jan 2021 14:00:19 +0100 Subject: [PATCH] Fixed string errors --- src/cli.py | 1 + src/cli/add.py | 2 +- src/cli/remove.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli.py b/src/cli.py index 19d0472..386bacf 100755 --- a/src/cli.py +++ b/src/cli.py @@ -33,6 +33,7 @@ parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, add_help=False, prog="howdy", + usage="howdy [-U USER] [--plain] [-h] [-y] {command} [{arguments}...]".format(command=_("command"), arguments=_("arguments")), epilog=_("For support please visit\nhttps://github.com/boltgolt/howdy")) # Add an argument for the command diff --git a/src/cli/add.py b/src/cli/add.py index 0851b0e..1cab2e9 100644 --- a/src/cli/add.py +++ b/src/cli/add.py @@ -73,7 +73,7 @@ if len(encodings) > 3: # Make clear what we are doing if not human if not builtins.howdy_args.plain: - print(_("Adding face model for the user " + user)) + print(_("Adding face model for the user ") + user) # Set the default label label = "Initial model" diff --git a/src/cli/remove.py b/src/cli/remove.py index b594fec..f9c29a4 100644 --- a/src/cli/remove.py +++ b/src/cli/remove.py @@ -34,7 +34,7 @@ enc_file = path + "/models/" + user + ".dat" try: encodings = json.load(open(enc_file)) except FileNotFoundError: - print(_("No face model known for the user " + user + ", please run:")) + print(_("No face model known for the user {}, please run:").format(user)) print("\n\thowdy add\n") sys.exit(1)