Skip to content

Commit 03e48bd

Browse files
somanshreddyclaude
andcommitted
cmd: remove internal env vars from help text
HEYGEN_MAX_RETRIES and HEYGEN_CONFIG_DIR are dev/debug plumbing, not user-facing configuration. They still work but aren't advertised. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0734dbd commit 03e48bd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

cmd/heygen/root.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ func newRootCmd(version string, formatter output.Formatter) *cobra.Command {
1717
root := &cobra.Command{
1818
Use: "heygen",
1919
Short: "HeyGen CLI — create and manage videos, avatars, and more",
20-
// NOTE: env var list is hardcoded. Keep config-related entries in sync with
21-
// envVarByKey in env_provider.go and update operational settings here too.
20+
// NOTE: env var list is hardcoded. Keep in sync with envVarByKey in env_provider.go.
21+
// Internal/dev-only env vars (HEYGEN_MAX_RETRIES, HEYGEN_CONFIG_DIR) are
22+
// intentionally not listed here.
2223
Long: `HeyGen CLI — create and manage videos, avatars, and more.
2324
2425
Environment Variables:
2526
HEYGEN_API_KEY API key for authentication (overrides stored credentials)
2627
HEYGEN_OUTPUT Output format: json, human (default: json)
27-
HEYGEN_NO_ANALYTICS Disable analytics when set (default: enabled)
28-
HEYGEN_MAX_RETRIES Max retries for transient errors (default: 2, 0 to disable)
29-
HEYGEN_CONFIG_DIR Override config directory (default: ~/.heygen)`,
28+
HEYGEN_NO_ANALYTICS Disable analytics when set (default: enabled)`,
3029
Version: version,
3130
SilenceUsage: true, // we handle usage errors ourselves
3231
SilenceErrors: true, // we handle error output ourselves

0 commit comments

Comments
 (0)