From 5f2f120b4bc6de909d2d5b91e34ab85ed9a158e0 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 24 Oct 2023 10:39:49 -0400 Subject: [PATCH] improve help and error messages --- python/install.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/install.py b/python/install.py index c3944bab3a..fd9f95f1bf 100644 --- a/python/install.py +++ b/python/install.py @@ -18,7 +18,7 @@ parser = ArgumentParser(prog='install.py', description='LAMMPS python package installer script') parser.add_argument("-p", "--package", required=True, - help="path to the LAMMPS Python package") + help="path to the LAMMPS Python package folder") parser.add_argument("-l", "--lib", required=True, help="path to the compiled LAMMPS shared library") parser.add_argument("-n", "--noinstall", action="store_true", default=False, @@ -34,7 +34,7 @@ args = parser.parse_args() if args.package: if not os.path.exists(args.package): - print("ERROR: LAMMPS package folder %s does not exist" % args.package) + print("\nERROR: LAMMPS package folder %s does not exist\n" % args.package) parser.print_help() sys.exit(1) else: @@ -48,7 +48,7 @@ if args.package: if args.lib: if not os.path.exists(args.lib): - print("ERROR: LAMMPS shared library %s does not exist" % args.lib) + print("\nERROR: LAMMPS shared library %s does not exist\n" % args.lib) parser.print_help() sys.exit(1) else: @@ -56,7 +56,7 @@ if args.lib: if args.wheeldir: if not os.path.exists(args.wheeldir): - print("ERROR: directory %s to store the wheel does not exist" % args.wheeldir) + print("\nERROR: directory %s to store the wheel does not exist\n" % args.wheeldir) parser.print_help() sys.exit(1) else: @@ -64,7 +64,7 @@ if args.wheeldir: if args.versionfile: if not os.path.exists(args.versionfile): - print("ERROR: LAMMPS version file at %s does not exist" % args.versionfile) + print("\nERROR: LAMMPS version file at %s does not exist\n" % args.versionfile) parser.print_help() sys.exit(1) else: