1
// project created on 16/07/2006 at 13:33
4
using Mono.Addins.Setup;
10
public static int Main(string[] args)
12
if (args.Length == 0 || args [0] == "--help" || args [0] == "help") {
13
Console.WriteLine ("Mono.Addins Setup Utility");
14
Console.WriteLine ("Usage: mautil [options] <command> [arguments]");
16
Console.WriteLine ("Options:");
17
Console.WriteLine (" --registry (-reg) Specify add-in registry path");
18
Console.WriteLine (" -v Verbose output");
24
foreach (string a in args)
29
bool toolParam = true;
31
while (toolParam && ppos < args.Length)
33
if (args [ppos] == "-reg" || args [ppos] == "--registry") {
34
if (ppos + 1 >= args.Length) {
35
Console.WriteLine ("Registry path not provided.");
38
path = args [ppos + 1];
41
else if (args [ppos] == "-v")
47
AddinRegistry reg = path != null ? new AddinRegistry (path) : AddinRegistry.GetGlobalRegistry ();
49
SetupTool setupTool = new SetupTool (reg);
50
setupTool.VerboseOutput = verbose;
51
return setupTool.Run (args, ppos);
52
} catch (Exception ex) {
53
Console.WriteLine (ex);
b'\\ No newline at end of file'