Commit eb0bd0a3 authored by steinbac's avatar steinbac
Browse files

added stub for second demo

parent 71e07dfe
#!/usr/bin/env python3
import argparse
def main():
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('integers', metavar='N', type=int, nargs='+',
help='an integer for the accumulator')
parser.add_argument('-s','--summary', dest='summarize', action='store_const',
const=sum, default=max,
help='sum the integers (default: find the max)')
args = parser.parse_args()
from geom_vector import geom_vector as gv
myv = gv(args.integers)
print(myv.norm(args.summarize))
if __name__ == '__main__':
main()
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