Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

argparse flag without value

import argparse

parser = argparse.ArgumentParser()
parser.add_argument('-w', action='store_true')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #argparse #flag
ADD COMMENT
Topic
Name
9+6 =