command: remove init function

Maybe this is short-sighted, but it wasn't really doing anything. Chuck
it.
This commit is contained in:
2023-04-04 23:22:12 -07:00
parent e09d542c3a
commit 910cdd8106
2 changed files with 13 additions and 11 deletions

View File

@@ -77,16 +77,12 @@ pub fn CommandBuilder(comptime UserContext: type) type {
param_spec: ncmeta.TupleBuilder = .{},
// this is a strange hack, but it's easily the path of least resistance
help_flag: ShortLongPair = .{ .short_tag = "-h", .long_tag = "--help" },
description: []const u8,
/// if any subcommands are provided, one of them must be specified, or the command has failed.
subcommand_required: bool = true,
description: []const u8,
pub const UserContextType = UserContext;
pub fn init(comptime description: []const u8) @This() {
return .{ .description = description };
}
pub fn create_parser(
comptime self: @This(),
comptime callback: self.CallbackSignature(),