aduros / wasm4

Build retro games using WebAssembly for a fantasy console.
https://wasm4.org
ISC License
1.14k stars 167 forks source link

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

Closed iacore closed 4 months ago

iacore commented 5 months ago
❯ w4 new --lang c .
You must specify a programming language, for example by passing --c or --rust.
JerwuQu commented 5 months ago

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

iacore commented 5 months ago

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.