Skip to content

Consider renaming --output to --format CLI-wide to free --output for directory targeting #5568

Description

@satvu

Context

From PR #5535 discussion — the func new redesign needs an option for the template output directory (analogous to dotnet new --output), but --output / -o is already used across v5 commands to control rendering format (plain/json).

Currently --output means "format" on:

  • func new
  • func start
  • func setup

This forces the template output directory to use --path, which is ambiguous.

Proposal

Rename the format option from --output to --format across all commands, then use --output / -o for directory targeting on func new (and potentially func init), matching dotnet new --output conventions.

Why now is a good time

  • --output as format is a v5-only convention — v4 doesn't use it
  • v5 is still in preview, so breaking changes are expected
  • Aligning with dotnet new --output reduces learning curve

Scope

Needs a CLI-wide audit of --output usage and a coordinated rename across all affected commands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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