From e784da982f5234ec78092dbc971ca5702995f86e Mon Sep 17 00:00:00 2001 From: Tomasz Dwojak Date: Sat, 16 Dec 2017 06:22:18 +0100 Subject: [PATCH] Update ar_parse --- labs05/argparse_min.py | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/labs05/argparse_min.py b/labs05/argparse_min.py index e34f110..ee077a1 100644 --- a/labs05/argparse_min.py +++ b/labs05/argparse_min.py @@ -3,8 +3,27 @@ import argparse parser = argparse.ArgumentParser() parser.parse_args() -"""" -parser = argparse.ArgumentParser() -parser.add_argument("number", help="Opis") -args = parser.parse_args() -""" \ No newline at end of file +# parser = argparse.ArgumentParser() +# parser.add_argument("number", help="Opis") +# args = parser.parse_args() + +# parser = argparse.ArgumentParser() +# parser.add_argument("number", help="Opis", nargs="+") +# args = parser.parse_args() + +# parser = argparse.ArgumentParser() +# parser.add_argument("--verbosity", help="increase output verbosity") +# args = parser.parse_args() + + +# parser = argparse.ArgumentParser() +# parser.add_argument("--verbose", help="increase output verbosity", +# action="store_true") +# args = parser.parse_args() + + +# parser = argparse.ArgumentParser() +# parser.add_argument("-v", "--verbose", help="increase output verbosity", +# action="store_true") +# parser.add_argument("number", help="Opis", nargs="+") +# args = parser.parse_args() \ No newline at end of file