47 lines
No EOL
1.6 KiB
C#
47 lines
No EOL
1.6 KiB
C#
using Ubisoft.CommandLine;
|
|
|
|
namespace Launcher
|
|
{
|
|
[CommandLineManager(ApplicationName = "Launcher",
|
|
Copyright = "Copyright (c) Ubisoft Entertainment",
|
|
Description = "",
|
|
Version = "1.0.0",
|
|
EnabledOptionStyles = OptionStyles.ShortUnix)]
|
|
[CommandLineOptionGroup("commands", Name = "Commands", Require = OptionGroupRequirement.ExactlyOne)]
|
|
public class ApplicationOptions
|
|
{
|
|
[CommandLineOption(
|
|
Name = "open",
|
|
Description = "open a file with the appropriate tool",
|
|
RequireExplicitAssignment = false,
|
|
GroupId = "commands")]
|
|
public bool Open = false;
|
|
|
|
[CommandLineOption(
|
|
Name = "initializeDataRoot",
|
|
Description = "Parse the disk for a valid data root candidate.",
|
|
RequireExplicitAssignment = false,
|
|
GroupId = "commands")]
|
|
public bool InitializeDataRoot = false;
|
|
|
|
[CommandLineOption(
|
|
Name = "copyRelativePath",
|
|
Description = "Copy the relative path",
|
|
RequireExplicitAssignment = false,
|
|
GroupId = "commands")]
|
|
public bool CopyRelativePath = false;
|
|
|
|
[CommandLineOption(
|
|
Name = "copyAbsolutePath",
|
|
Description = "Copy the absolute path",
|
|
RequireExplicitAssignment = false,
|
|
GroupId = "commands")]
|
|
public bool CopyAbsolutePath = false;
|
|
|
|
[CommandLineOption(
|
|
Name = "file",
|
|
Description = "The file path",
|
|
RequireExplicitAssignment = false)]
|
|
public string FilePath { get; set; }
|
|
}
|
|
} |