command: remove init function
Maybe this is short-sighted, but it wasn't really doing anything. Chuck it.
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user