Skip to content

dbwoyp/str8barz_runner.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

import argparse

Initialize the parser

parser = argparse.ArgumentParser(description='Process some command line arguments.')

Adding optional argument

parser.add_argument('--arg1', type=str, help='An optional string argument')

Adding required argument

parser.add_argument('--arg2', type=int, required=True, help='A required integer argument')

Parse the arguments

args = parser.parse_args()

Accessing the arguments

print('arg1:', args.arg1) print('arg2:', args.arg2)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors