forked from Boria138/PortProtonQt
21 lines
665 B
Python
21 lines
665 B
Python
import argparse
|
|
|
|
|
|
def parse_args():
|
|
"""
|
|
Parses command-line arguments.
|
|
"""
|
|
parser = argparse.ArgumentParser(description="PortProtonQt CLI")
|
|
parser.add_argument(
|
|
"--fullscreen",
|
|
action="store_true",
|
|
help="Launch the application in fullscreen mode and save this setting"
|
|
)
|
|
parser.add_argument(
|
|
"--debug-level",
|
|
choices=['ALL', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
|
|
default='NOTSET',
|
|
help="Установить уровень логирования (ALL для всех сообщений, по умолчанию: без логов)"
|
|
)
|
|
return parser.parse_args()
|