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

'w4 new --lang X .' not working #698

Closed
iacore opened this issue Mar 18, 2024 · 2 comments
Closed

'w4 new --lang X .' not working #698

iacore opened this issue Mar 18, 2024 · 2 comments

Comments

@iacore
Copy link

iacore commented Mar 18, 2024

❯ w4 new --lang c .
You must specify a programming language, for example by passing --c or --rust.
@JerwuQu
Copy link
Contributor

JerwuQu commented Mar 18, 2024

Try --c like the suggestion instead of --lang c

@iacore
Copy link
Author

iacore commented Mar 18, 2024

Try --c like the suggestion instead of --lang c

That works. The problem is documentation.

❯ w4 new -h
Usage: w4 new|create [options] <directory>

Create a new blank project

Options:
  --as, --assemblyscript  Create AssemblyScript project (Shorthand for --lang
                          assemblyscript)
  --c                     Create C project (Shorthand for --lang c)
  --c3                    Create C3 project (Shorthand for --lang c3)
  --cpp                   Create C++ project (Shorthand for --lang cpp)
  --d                     Create D project (Shorthand for --lang d)
  --go                    Create Go project (Shorthand for --lang go)
  --nelua                 Create Nelua project (Shorthand for --lang nelua)
  --nim                   Create Nim project (Shorthand for --lang nim)
  --odin                  Create Odin project (Shorthand for --lang odin)
  --penne                 Create Penne project (Shorthand for --lang penne)
  --porth                 Create Porth project (Shorthand for --lang porth)
  --roland                Create Roland project (Shorthand for --lang roland)
  --rs, --rust            Create Rust project (Shorthand for --lang rust)
  --wat                   Create WebAssembly Text project (Shorthand for --lang
                          wat)
  --zig                   Create Zig project (Shorthand for --lang zig)
  --lang <lang>           Use the given language (choices: "assemblyscript", "c",
                          "c3", "cpp", "d", "go", "nelua", "nim", "odin", "penne",
                          "porth", "roc", "roland", "rust", "wat", "zig", env:
                          W4_LANG)
  --surprise-me           Create a project in a random language
  -h, --help              display help for command

See, --lang is in there.

JerwuQu added a commit to JerwuQu/wasm4 that referenced this issue Apr 17, 2024
@aduros aduros closed this as completed Apr 18, 2024
JerwuQu added a commit to JerwuQu/wasm4 that referenced this issue Apr 18, 2024
JerwuQu added a commit to JerwuQu/wasm4 that referenced this issue Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants