mirror of
https://github.com/tcsenpai/UWINE.git
synced 2025-06-06 11:35:20 +00:00
ulwgl_run: prefer selectively importing argparse functionality
This commit is contained in:
parent
aaf76af54b
commit
e641331b5a
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import argparse
|
|
||||||
from traceback import print_exception
|
from traceback import print_exception
|
||||||
from argparse import ArgumentParser, Namespace
|
|
||||||
import sys
|
import sys
|
||||||
|
from argparse import ArgumentParser, Namespace, RawTextHelpFormatter
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, Any, List, Set, Union, Tuple
|
from typing import Dict, Any, List, Set, Union, Tuple
|
||||||
from ulwgl_plugins import enable_steam_game_drive, set_env_toml
|
from ulwgl_plugins import enable_steam_game_drive, set_env_toml
|
||||||
@ -40,10 +39,10 @@ example usage:
|
|||||||
ULWGL_LOG= GAMEID= {exe} /home/foo/example.exe
|
ULWGL_LOG= GAMEID= {exe} /home/foo/example.exe
|
||||||
{exe} --config /home/foo/example.toml
|
{exe} --config /home/foo/example.toml
|
||||||
"""
|
"""
|
||||||
parser: ArgumentParser = argparse.ArgumentParser(
|
parser: ArgumentParser = ArgumentParser(
|
||||||
description="Unified Linux Wine Game Launcher",
|
description="Unified Linux Wine Game Launcher",
|
||||||
epilog=usage,
|
epilog=usage,
|
||||||
formatter_class=argparse.RawTextHelpFormatter,
|
formatter_class=RawTextHelpFormatter,
|
||||||
)
|
)
|
||||||
parser.add_argument("--config", help="path to TOML file (requires Python 3.11)")
|
parser.add_argument("--config", help="path to TOML file (requires Python 3.11)")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user