Skip to content

Commit

Permalink
Fix #103: Use --console/--windowed instead of --nowindowed/--noconsole
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvollebregt committed Jun 9, 2020
1 parent da95f8f commit a004728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auto_py_to_exe/web/js/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const getCurrentCommand = () => {
// For switches, there are some switches for false switches that we can use
const potentialOption = options.find(o => o.dest === c.optionDest && o.const === c.value);
if (potentialOption !== undefined) {
return potentialOption.option_strings[potentialOption.option_strings.length - 1];
// If there's only one potential flag, use it, otherwise use the second one
return potentialOption.option_strings[potentialOption.option_strings.length === 1 ? 0 : 1];
} else {
return null; // If there is no alternate option, skip it as it won't be required
}
Expand Down

0 comments on commit a004728

Please sign in to comment.