mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Fix launch command on Windows
This commit is contained in:
parent
730eaebec9
commit
7d919c1f2a
|
@ -686,6 +686,10 @@ def main():
|
||||||
launch_parser.add_argument('--wine-prefix', dest='wine_pfx', action='store', metavar='<wine pfx path>',
|
launch_parser.add_argument('--wine-prefix', dest='wine_pfx', action='store', metavar='<wine pfx path>',
|
||||||
default=os.environ.get('LGDRY_WINE_PREFIX', None),
|
default=os.environ.get('LGDRY_WINE_PREFIX', None),
|
||||||
help='Override WINE prefix used.')
|
help='Override WINE prefix used.')
|
||||||
|
else:
|
||||||
|
# hidden arguments to not break this on Windows
|
||||||
|
launch_parser.add_argument('--wine', help=argparse.SUPPRESS, dest='wine_bin')
|
||||||
|
launch_parser.add_argument('--wine-prefix', help=argparse.SUPPRESS, dest='wine_pfx')
|
||||||
|
|
||||||
list_parser.add_argument('--platform', dest='platform_override', action='store', metavar='<Platform>',
|
list_parser.add_argument('--platform', dest='platform_override', action='store', metavar='<Platform>',
|
||||||
type=str, help='Override platform that games are shown for')
|
type=str, help='Override platform that games are shown for')
|
||||||
|
|
Loading…
Reference in a new issue