public HelpCommand(YaclipApp app) { this.App = app ?? throw new ArgumentNullException(nameof(app)); this.Name = new[] { "help" }; this.Description = "Provides help about the usage of the program and its commands."; this.Options = Array.Empty <Option>(); this.Arguments = new[] { new Argument(typeof(string[]), Expression.Property(Expression.Variable(typeof(HelpOptions)), nameof(HelpOptions.Command)), false, "cmd"), }; this.ObjectType = typeof(HelpOptions); }
public HelpCommand(YaclipApp app) { this.App = app ?? throw new ArgumentNullException(nameof(app)); }