mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 08:09:37 +00:00
13 lines
445 B
Python
13 lines
445 B
Python
import argparse
|
|
|
|
parser = argparse.ArgumentParser(
|
|
prog = 'Party Controller',
|
|
description = 'Manage Lan parties',
|
|
epilog = 'thanks for using')
|
|
|
|
parser.add_argument('filename') # positional argument
|
|
parser.add_argument('-s', '--start') # option that takes a value
|
|
parser.add_argument('-l', '--load')
|
|
|
|
args = parser.parse_args()
|
|
print(args.filename, args.start, args.load) |