Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Fix parsing of boolean command line options (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
s9ferech authored Sep 23, 2021
1 parent 3985f1e commit 275eea1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@

#### Visual Environment

- [Correct handling of command-line flags.][1815] Command line arguments of the
form `--backend=false` or `--backend false` are now handled as expected and
turn off the "backend" option. The same fix has been applied to all other
boolean command-line options as well.
- [Visualizations will be attached after project is ready.][1825] This addresses
a rare issue when initially opened visualizations were automatically closed
rather than filled with data.

<br/>

[1815]: https://github.com/enso-org/ide/pull/1815
[1825]: https://github.com/enso-org/ide/pull/1825

# Enso 2.0.0-alpha.16 (2021-09-16)
Expand Down
5 changes: 5 additions & 0 deletions src/js/lib/client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,25 @@ optParser.options('project', {
optParser.options('server', {
group : configOptionsGroup,
describe : 'Run the server [true]',
type : 'boolean',
})

optParser.options('window', {
group : configOptionsGroup,
describe : 'Show the window [true]',
type : 'boolean',
})

optParser.options('background-throttling', {
group : configOptionsGroup,
describe : 'Throttle animations when run in background [false]',
type : 'boolean',
})

optParser.options('backend', {
group : configOptionsGroup,
describe : 'Start the backend process automatically [true]',
type : 'boolean',
})

optParser.options('backend-path', {
Expand Down Expand Up @@ -209,6 +213,7 @@ optParser.options('crash-report-host', {

optParser.options('data-gathering', {
describe : 'Enable the sharing of any usage data',
type : 'boolean',
default : true
})

Expand Down

0 comments on commit 275eea1

Please sign in to comment.