Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue #32 arguments not working #41

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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