Program.cs 933 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xmind2UnityConfig
{
    class Program
    {
        static int Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("param err!! format:Xmind2UnityConfig.exe [xmind file] [?:unity.config path]");
                return -1;
            }
            else if (args.Length == 1)
            {
潘栩锋's avatar
潘栩锋 committed
20
                return Xmind2UnityConfigCore.XMindTypeExt.ToUnity(args[0], null, true);
21
            }
潘栩锋's avatar
潘栩锋 committed
22
            else if (args.Length == 2)
23
            {
潘栩锋's avatar
潘栩锋 committed
24 25 26 27 28
                return Xmind2UnityConfigCore.XMindTypeExt.ToUnity(args[0], args[1], true);
            }
            else// if (args.Length == 2)
            {
                return Xmind2UnityConfigCore.XMindTypeExt.ToUnity(args[0], args[1], bool.Parse(args[2]));
29 30 31 32
            }
        }
    }
}