DocSpace-client/common/ASC.Resource.Manager/Options.cs

32 lines
1.3 KiB
C#
Raw Normal View History

using CommandLine;
namespace ASC.Resource.Manager
{
public class Options
{
[Option('p', "project", Required = false, HelpText = "Project")]
public string Project { get; set; }
[Option('m', "module", Required = false, HelpText = "Module")]
public string Module { get; set; }
2019-08-13 15:17:14 +00:00
[Option("fp", Required = false, HelpText = "File Path")]
public string FilePath { get; set; }
2019-08-13 11:17:18 +00:00
[Option('e', "exportpath", Required = false, HelpText = "Export Path", Default = "..\\..\\..\\..\\ASC.Common\\")]
public string ExportPath { get; set; }
[Option('c', "culture", Required = false, HelpText = "Culture")]
public string Culture { get; set; }
2019-08-13 11:17:18 +00:00
[Option('f', "format", Required = false, HelpText = "Format", Default = "xml")]
public string Format { get; set; }
2019-08-13 13:03:56 +00:00
[Option('k', "key", Required = false, HelpText = "Key", Default = "")]
public string Key { get; set; }
2019-08-15 12:04:42 +00:00
public void Deconstruct(out string project, out string module, out string filePath, out string exportPath, out string culture, out string format, out string key)
2019-08-13 15:17:14 +00:00
=> (project, module, filePath, exportPath, culture, format, key) = (Project, Module, FilePath, ExportPath, Culture, Format, Key);
}
}