FlashpointProject / launcher

Launcher for Flashpoint Archive

Home Page:https://flashpointarchive.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Launcher Arguments are not parsed correctly on Windows

dot-mike opened this issue · comments

commented

Describe the bug
Launcher arguments are not correctly parsed on Windows, the user have to specify the first argument twice! It completely ignores the first passed argument.

To Reproduce

  1. Try starting Flashpoint.exe with the following arguments browser_mode=True & verbose=True:
    .\Flashpoint.exe browser_mode=True verbose=True
  2. You will see the following output: { args: { verbose: true }, rest: 'verbose=True' } indicating that argument parser is wrong and missing the first argument browser_mode.

Expected behavior
That argument parser correctly parsed both arguments and the output was the following:
{ args: { verbose: true, browser_mode: true }, rest: '' }

Additional context
You have to specify the first arguments twice for it to work, e.g.

 .\Flashpoint.exe back-only=True verbose=True browser_mode=True
PS E:\flashpoint\Flashpoint 10 Infinity_laucher_10-1\Launcher>
{ args: { verbose: true, browser_mode: true }, rest: '' }
```
commented

Updated issues to match issue format