diff --git a/scripts/geometry_analysis/center_of_mass.py b/scripts/geometry_analysis/center_of_mass.py index 1e83792..34de7b4 100644 --- a/scripts/geometry_analysis/center_of_mass.py +++ b/scripts/geometry_analysis/center_of_mass.py @@ -62,7 +62,7 @@ def get_geom(xyz_file_name): # input syntax and usage warnings def get_inputs(): if (not len(sys.argv) == 2): - print('Usage: center_of_mass.py XYZ_FILE\n') + print('Usage: %s XYZ_FILE\n' % sys.argv[0]) print(' XYZ_FILE: coordinates of target molecule\n') sys.exit() else: diff --git a/scripts/geometry_analysis/geometry_analysis.py b/scripts/geometry_analysis/geometry_analysis.py index b1de49d..45ee20a 100644 --- a/scripts/geometry_analysis/geometry_analysis.py +++ b/scripts/geometry_analysis/geometry_analysis.py @@ -94,7 +94,7 @@ def get_geom(xyz_file_name): # input syntax and usage warnings def get_inputs(): if (not len(sys.argv) == 2): - print('\nUsage: geometry_analysis.py XYZ_FILE\n') + print('\nUsage: %s XYZ_FILE\n' % sys.argv[0]) print(' XYZ_FILE: coordinates of target molecule\n') sys.exit() else: diff --git a/scripts/geometry_analysis/moment_of_inertia.py b/scripts/geometry_analysis/moment_of_inertia.py index 405cdfe..d14b96a 100644 --- a/scripts/geometry_analysis/moment_of_inertia.py +++ b/scripts/geometry_analysis/moment_of_inertia.py @@ -66,7 +66,7 @@ def get_geom(xyz_file_name): # input syntax and usage warnings def get_inputs(): if (not len(sys.argv) == 2): - print('Usage: moment_of_inertia.py XYZ_FILE\n') + print('Usage: %s XYZ_FILE\n' % sys.argv[0]) print(' XYZ_FILE: coordinates of target molecule\n') sys.exit() else: diff --git a/scripts/geometry_analysis/out_of_planes.py b/scripts/geometry_analysis/out_of_planes.py index cf89ed1..204c143 100644 --- a/scripts/geometry_analysis/out_of_planes.py +++ b/scripts/geometry_analysis/out_of_planes.py @@ -51,7 +51,7 @@ def get_geom(xyz_file_name): # input syntax and usage warnings def get_inputs(): if (not len(sys.argv) == 2): - print('Usage: out_of_planes.py XYZ_FILE\n') + print('Usage: %s XYZ_FILE\n' % sys.argv[0]) print(' XYZ_FILE: coordinates of target molecule\n') sys.exit() else: diff --git a/scripts/geometry_analysis/torsions.py b/scripts/geometry_analysis/torsions.py index 89d34b1..f703249 100644 --- a/scripts/geometry_analysis/torsions.py +++ b/scripts/geometry_analysis/torsions.py @@ -51,7 +51,7 @@ def get_geom(xyz_file_name): # input syntax and usage warnings def get_inputs(): if (not len(sys.argv) == 2): - print('Usage: torsions.py XYZ_FILE\n') + print('Usage: %s XYZ_FILE\n' % sys.argv[0]) print(' XYZ_FILE: coordinates of target molecule\n') sys.exit() else: diff --git a/scripts/geometry_analysis/zmat2xyz.py b/scripts/geometry_analysis/zmat2xyz.py index e96aacb..a1c35c5 100644 --- a/scripts/geometry_analysis/zmat2xyz.py +++ b/scripts/geometry_analysis/zmat2xyz.py @@ -41,7 +41,7 @@ def get_file_string_array(file_name): # input syntax and usage warnings def get_input(): if (not len(sys.argv) == 2): - print('\nUsage: zmat2xyz.py ZMAT_FILE\n') + print('\nUsage: %s ZMAT_FILE\n' % sys.argv[0]) print(' ZMAT_FILE: z-matrix file of target molecule\n') sys.exit() else: