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

Fix parsing of boolean command line options #1815

Merged
merged 6 commits into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Next Release

<br/>![Bug Fixes](/docs/assets/tags/bug_fixes.svg)

#### 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.

<br/>

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

# Enso 2.0.0-alpha.12 (2021-08-13)

<br/>![New Features](/docs/assets/tags/new_features.svg)
Expand All @@ -18,6 +31,8 @@
enhancements and fixes made to the Enso compiler, you can find their release
notes [here](https://github.com/enso-org/enso/blob/main/RELEASES.md).

<br/>

[1801]: https://github.com/enso-org/ide/pull/1801
[1775]: https://github.com/enso-org/ide/pull/1775
[1798]: https://github.com/enso-org/ide/pull/1798
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('no-data-gathering', {
describe : 'Disable the sharing of any usage data',
type : 'boolean',
default : false
})

Expand Down