Skip to content

Commit

Permalink
refactor(App): Rename parameters to make them short
Browse files Browse the repository at this point in the history
Signed-off-by: PrajwalCH <prajwal.chapagain58@gmail.com>
  • Loading branch information
prajwalch committed Jun 20, 2023
1 parent 0b0cf0c commit 34ce593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.zig
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ pub fn deinit(self: *App) void {
///
/// var subcmd1 = app.createCommand("subcmd1", "First Subcommand");
/// ```
pub fn createCommand(self: *App, cmd_name: []const u8, cmd_description: ?[]const u8) Command {
return Command.init(self.allocator, cmd_name, cmd_description);
pub fn createCommand(self: *App, name: []const u8, description: ?[]const u8) Command {
return Command.init(self.allocator, name, description);
}

/// Returns a pointer to the root `Command` of the application.
Expand Down

0 comments on commit 34ce593

Please sign in to comment.