Commit 65ab7beb authored by Matt Clarkson's avatar Matt Clarkson

Update README.rst to match command line args.

parent c784c3fd
Pipeline #3178 passed with stages
in 7 minutes and 43 seconds
......@@ -25,14 +25,14 @@ Author: Yunguan Fu
yunguanfu-mil3id2019 is part of the `SNAPPY`_ software project, developed at the `Wellcome EPSRC Centre for Interventional and Surgical Sciences`_, part of `University College London (UCL)`_.
yunguanfu-mil3id2019 supports Python 2.7 and Python 3.6.
yunguanfu-mil3id2019 supports Python 3.6.
yunguanfu-mil3id2019 is currently a demo project, which will add/multiply two numbers. Example usage:
::
python yfmil3id2019.py 5 8
python yfmil3id2019.py 3 6 --multiply
python yfmil3id2019_train.py -x 5 -y 8
python yfmil3id2019_train.py -x 3 -y 6 --multiply
Please explore the project structure, and implement your own functionality.
......
......@@ -14,16 +14,16 @@ def main(args=None):
parser = argparse.ArgumentParser(description='yfmil3id2019_train')
## ADD POSITIONAL ARGUMENTS
parser.add_argument("-x",
required=True,
type=int,
help="1st number")
parser.add_argument("-y",
required=True,
type=int,
help="2nd number")
# ADD OPTINAL ARGUMENTS
parser.add_argument("-m", "--multiply",
action="store_true",
help="Enable multiplication of inputs."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment