~khurshid-alam/libunity/glib-2.59.3

« back to all changes in this revision

Viewing changes to loader/scope-loader.vala

  • Committer: James Henstridge
  • Date: 2013-07-17 08:28:40 UTC
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: james@jamesh.id.au-20130717082840-1wp21ezbegf48bsl
Add a '-m' flag to unity-scope-loader to allow loading a scope shared 
library directly (rather than through a scope or group file).  This is 
intended to make testing in-development scopes easier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
namespace Options
4
4
{
5
5
  private static string group;
 
6
  private static string module;
6
7
}
7
8
 
8
9
const OptionEntry[] options =
12
13
    "Scope group configuration", null
13
14
  },
14
15
  {
 
16
    "module", 'm', 0, OptionArg.STRING, out Options.module,
 
17
    "Scope shared library (for testing)", null
 
18
  },
 
19
  {
15
20
    null
16
21
  }
17
22
};
36
41
    {
37
42
      loader.load_group (Options.group);
38
43
    }
 
44
    else if (Options.module != null)
 
45
    {
 
46
      loader.load_module (Options.module, "C");
 
47
    }
39
48
    else
40
49
    {
41
50
      for (var i = 1; i < args.length; i++)