temporal icon indicating copy to clipboard operation
temporal copied to clipboard

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

Open axfelix opened this issue 1 year ago • 2 comments

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

axfelix avatar Jul 03 '24 15:07 axfelix

The config flags are weird for historical reasons. -c is a global flag (i.e. has to be given before start), but it just specifies the directory. For the file within the directory, add -e file, but without the .yaml extension.

dnr avatar Jul 03 '24 16:07 dnr

Ah, gotcha. We should probably change the CLI help messages then, since this isn't clear at all otherwise.

axfelix avatar Jul 03 '24 16:07 axfelix