From 50aba7ed8956d71f79de042691f3d48b0fe3d757 Mon Sep 17 00:00:00 2001 From: jorvis Date: Fri, 10 Nov 2017 15:55:26 -0600 Subject: [PATCH] Updated documentation on argument parsing --- script_template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script_template.py b/script_template.py index 7acb2ba3..5f0157f9 100755 --- a/script_template.py +++ b/script_template.py @@ -13,7 +13,8 @@ def main(): parser = argparse.ArgumentParser( description='Put a description of your script here') - ## output file to be written + ## Add arguments for your script here. Already added are -i and -o for input/output. + # More information on argument parsing here: https://docs.python.org/3/howto/argparse.html parser.add_argument('-i', '--input_file', type=str, required=True, help='Path to an input file to be read' ) parser.add_argument('-o', '--output_file', type=str, required=True, help='Path to an output file to be created' ) args = parser.parse_args()