Skip to content

Commit

Permalink
Updated documentation on argument parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jorvis committed Nov 10, 2017
1 parent fd760d6 commit 50aba7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 50aba7e

Please sign in to comment.