Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
C-code generator for docopt language
====================================

Note, *at this point the code generator handles only options*
(positional arguments, commands and pattern matching will follow).

### Step 1. Describe your CLI in docopt language

```
Expand Down Expand Up @@ -55,6 +52,7 @@ int main(int argc, char *argv[])
printf(" ship == %s\n", args.ship ? "true" : "false");
printf(" shoot == %s\n", args.shoot ? "true" : "false");
printf("Arguments\n");
printf(" name == %s\n", args.name);
printf(" x == %s\n", args.x);
printf(" y == %s\n", args.y);
printf("Flags\n");
Expand Down Expand Up @@ -82,6 +80,7 @@ Commands
ship == false
shoot == false
Arguments
name == (null)
x == (null)
y == (null)
Flags
Expand Down
Loading