We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ac38d commit f95c126Copy full SHA for f95c126
2 files changed
README.md
@@ -22,6 +22,7 @@ Inspired by [urfave/cli](https://github.com/urfave/cli) Go package.
22
* colored help messages when TTY is attached
23
24
## Usage
25
+[API Documentation](https://sam701.github.io/zig-cli)
26
```zig
27
const std = @import("std");
28
const cli = @import("cli");
src/root.zig
@@ -10,8 +10,8 @@
10
//! port: u16 = undefined,
11
//! }{};
12
//!
13
-//! pub fn main() !void {
14
-//! var r = try cli.AppRunner.init(std.heap.page_allocator);
+//! pub fn main(init: std.process.Init) !void {
+//! var r = cli.AppRunner.init(&init);
15
16
//! // Create an App with a command named "short" that takes host and port options.
17
//! const app = cli.App{
0 commit comments