Skip to content

feat: pass --quiet and --no-color flags through ez watch #1573

@SchoolyB

Description

@SchoolyB

Summary

The `ez watch` command re-runs the compiler on file changes, but does not support `--quiet` or `--no-color` flags. Both `ez build` and `ez check` support these flags. When a user is in watch mode and wants to suppress specific warnings during development, there is no way to do so.

Current behavior

In `cmd/ez/watch.go`, the run call passes `nil` for extra arguments:

```go
ezc.Run(filename, nil)
```

Implementation guidance

  1. Open `cmd/ez/watch.go`
  2. Add `--quiet` / `-q` and `--no-color` flag definitions (same as `buildCmd` in `commands.go`)
  3. Build the extra args slice from these flags
  4. Pass them through to `ezc.Run()`
  5. Follow the exact same pattern used in `buildCmd` and `checkCmd`

Files to modify

  • `cmd/ez/watch.go`
  • `cmd/ez/commands.go` (if watch command registration is here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestezcEZC compiler tool (EZ → C → native binary)good first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions