Skip to content

func create gives unclear guidance when --language flag is missing #3015

@RayyanSeliya

Description

@RayyanSeliya

Current behavior:
When running func create without the required --language flag, the error message is quite technical and may be confusing for beginners,
see here

Error: Required flag "language" not set.
Available language runtimes are:
  go
  node
  python
  quarkus
  rust
  springboot
  typescript

Proposed improvement:

Make the error message more user-friendly and helpful something like this :

Error: Missing required language
You need to specify which programming language to use.
Choose from these options:
  go
  node
  python
  quarkus
  rust
  springboot
  typescript

Example:
  func create --language python myfunction

Run 'func languages' to see detailed language information.



Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions