temporalio / temporalio/temporal

"Flag provided but not defined" when trying to specify config path

Open
#6,226 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

potential-bug
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Expected Behavior

temporal-server start -c /path/to/config would load a config path

Actual Behavior

Incorrect Usage: flag provided but not defined: -c

This happens when passing --config as well, and it also happens with the new ui-server binaries.

Steps to Reproduce the Problem

  1. Try to path a config path to the binary at runtime

Specifications

  • Version: newest release (1.24.2)
  • Platform: bash on Ubuntu 22.04

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command with temporal-server start and the ui-server binaries using both -c and --config, then inspect the command entry points that define their flags. Done means the config path is accepted at runtime and the specified configuration is loaded without the undefined-flag error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.