getting familiar with options
This commit is contained in:
@@ -11,4 +11,9 @@ import argparse
|
||||
|
||||
import argparse
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.parse_args()
|
||||
parser.add_argument("-v", "--verbosity", help="increase output verbosity",
|
||||
action="store_true")
|
||||
args = parser.parse_args()
|
||||
|
||||
if (args.verbosity):
|
||||
print("Verbosity is enabled")
|
||||
|
||||
Reference in New Issue
Block a user