Mir

Merge lp:~mterry/mir/dev-unregistered-options into lp:mir

Proposed by Robert Carr
Status: Merged
Approved by: Michael Terry
Approved revision: no longer in the source branch.
Merged at revision: 1094
Proposed branch: lp:~mterry/mir/dev-unregistered-options
Merge into: lp:mir
Diff against target: 12 lines (+2/-1)
1 file modified
src/server/options/program_option.cpp (+2/-1)
To merge this branch: bzr merge lp:~mterry/mir/dev-unregistered-options
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Robert Carr (community) Approve
Review via email: mp+188177@code.launchpad.net

This proposal supersedes a proposal from 2013-09-27.

Commit message

Ignore unknown options instead of aborting.

Description of the change

Ignore unknown options instead of aborting.

This fixes bug 1226227, which is blocking using Mir on the phone because it causes unity8 under autopilot to crash.

Alan G prefers a better long term solution, but seemed open to this as a short term one.

This is the 13.10 development version of https://code.launchpad.net/~mterry/mir/unregistered-options/+merge/188125

To post a comment you must log in.
Revision history for this message
Robert Carr (robertcarr) wrote :

Mergomatic.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~mterry/mir/dev-unregistered-options/+merge/188177/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
Robert Ancell (robert-ancell) wrote :

It's a workaround that will break the expected behaviour in unity-system-compositor but the side effect is not major and unblocking the phone testing seems sufficient. As discussed in bug 1226227 I think this could have been worked around in unity-mir.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/server/options/program_option.cpp'
2--- src/server/options/program_option.cpp 2013-09-20 18:58:02 +0000
3+++ src/server/options/program_option.cpp 2013-09-27 22:01:07 +0000
4@@ -36,7 +36,8 @@
5 int argc,
6 char const* argv[])
7 {
8- po::store(po::parse_command_line(argc, argv, desc), options);
9+ // TODO: Don't allow unregistered options, once we allow better overriding of option parsing
10+ po::store(po::command_line_parser(argc, argv).options(desc).allow_unregistered().run(), options);
11 po::notify(options);
12 }
13

Subscribers

People subscribed via source and target branches