From a72cfd91f9b09d785128f88570a212caa045d503 Mon Sep 17 00:00:00 2001 From: bing Date: Wed, 25 Oct 2023 00:11:29 +0800 Subject: [PATCH] small fixes to formatting and typo (#3) Co-authored-by: Abdel @ StarkWare <45264458+abdelhamidbakhta@users.noreply.github.com> --- src/cmd/cmd.zig | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/cmd/cmd.zig b/src/cmd/cmd.zig index 2ae15d11..cad4acd0 100644 --- a/src/cmd/cmd.zig +++ b/src/cmd/cmd.zig @@ -41,15 +41,24 @@ var execute_proof_mode_option = cli.Option{ // Define the CLI app. var app = &cli.App{ .name = "cairo-zig", - .description = "Cairo Virtual Machine written in Zig.\nHighly experimental, use at your own risk.", + .description = + \\Cairo Virtual Machine written in Zig. + \\Highly experimental, use at your own risk. + , .version = "0.0.1", .author = "StarkWare & Contributors", .subcommands = &.{ - &cli.Command{ .name = "execute", .help = "Execute a cairo program.", .description = - \\Execute a cairo program with the virtual machine. - , .action = execute, .options = &.{ - &execute_proof_mode_option, - } }, + &cli.Command{ + .name = "execute", + .help = "Execute a cairo program.", + .description = + \\Execute a cairo program with the virtual machine. + , + .action = execute, + .options = &.{ + &execute_proof_mode_option, + }, + }, }, }; @@ -64,7 +73,7 @@ pub fn run() !void { // execute entrypoint fn execute(_: []const []const u8) !void { - std.log.debug("Runing Cairo VM...\n", .{}); + std.log.debug("Running Cairo VM...\n", .{}); // Create a new VM instance. var vm = try vm_core.CairoVM.init(&gpa_allocator);