Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use helpers for command-line parsing in renderer/init.js #16239

Merged
merged 1 commit into from Jan 3, 2019

Conversation

miniak
Copy link
Contributor

@miniak miniak commented Jan 2, 2019

Description of Change

Makes the command-line parsing more robust.

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • PR title follows semantic commit guidelines

Release Notes

Notes: no-notes

@miniak miniak force-pushed the miniak/init-commandline branch 2 times, most recently from 11b7eb9 to 074527a Compare January 2, 2019 22:58
lib/renderer/command-line.js Outdated Show resolved Hide resolved
Copy link
Member

@nornagon nornagon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like this change, i think it would be even better if we used CommandLine::HasSwitch directly!

@miniak
Copy link
Contributor Author

miniak commented Jan 3, 2019

@nornagon I've exposed hasSwitch and getSwitchValue wrapping base::CommandLine from native code

Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing test seems related to this PR.

atom/browser/web_contents_preferences.cc Outdated Show resolved Hide resolved
atom/common/api/atom_api_command_line.cc Outdated Show resolved Hide resolved
@miniak
Copy link
Contributor Author

miniak commented Jan 3, 2019

@deepak1556 all comments should be addressed

@jkleinsc
Copy link
Contributor

jkleinsc commented Jan 3, 2019

Merging with failing arm test as it is broken in master

@jkleinsc jkleinsc merged commit 3f1d227 into master Jan 3, 2019
@release-clerk
Copy link

release-clerk bot commented Jan 3, 2019

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants