Example #1
0
        public static CliCommandEntry CreateArgument(string alias, string argument)
        {
            if (argument == null)
            {
                throw new ArgumentNullException(nameof(argument));
            }

            var entry = new CliCommandEntry(CliCommandEntryKind.Argument, alias, null, argument);

            return(entry);
        }
Example #2
0
        public static CliCommandEntry CreateOption(string alias, string key)
        {
            if (key == null)
            {
                throw new ArgumentNullException(nameof(key));
            }

            var entry = new CliCommandEntry(CliCommandEntryKind.Option, alias, key, null);

            return(entry);
        }