Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some flag defaults show up as [object Object] in help text #2539

Closed
cristiand391 opened this issue Oct 27, 2023 · 3 comments
Closed

some flag defaults show up as [object Object] in help text #2539

cristiand391 opened this issue Oct 27, 2023 · 3 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@cristiand391
Copy link
Member

Summary

some flags define a default value that the help text shows when using --help, but these are being rendered [object Object].
Some examples:

Screenshot 2023-10-27 at 11 11 33

Screenshot 2023-10-27 at 11 13 24

Steps To Reproduce

  1. run sf org create scratch -h (or --help), see help text

Expected result

default flag value is rendered correctly

Actual result

[object Object]

System Information

{
  "architecture": "darwin-x64",
  "cliVersion": "@salesforce/cli/2.15.8",
  "nodeVersion": "node-v18.17.0",
  "osVersion": "Darwin 22.6.0",
  "rootPath": "/Users/cdominguez/.nvm/versions/node/v18.17.0/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@cristiand391/sf-plugin-api 0.0.2 (user)",
    "@cristiand391/sf-plugin-fzf-cmp 0.0.1 (user)",
    "@oclif/plugin-autocomplete 2.3.10 (core)",
    "@oclif/plugin-commands 3.0.4 (core)",
    "@oclif/plugin-help 6.0.4 (core)",
    "@oclif/plugin-not-found 3.0.2 (core)",
    "@oclif/plugin-plugins 3.9.4 (core)",
    "@oclif/plugin-search 1.0.4 (core)",
    "@oclif/plugin-update 4.1.3 (core)",
    "@oclif/plugin-version 2.0.3 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.2 (core)",
    "@oclif/plugin-which 3.0.6 (core)",
    "@salesforce/cli 2.15.8 (core)",
    "apex 2.3.20 (core)",
    "auth 2.8.23 (core)",
    "data 2.6.1 (core)",
    "deploy-retrieve 1.19.2 (core)",
    "dev 1.2.1 (user)",
    "info 2.6.51 (core)",
    "limits 2.3.41 (core)",
    "login 1.2.39 (core)",
    "marketplace 0.3.1 (core)",
    "org 2.11.5 (core)",
    "schema 2.3.31 (core)",
    "settings 1.4.36 (core)",
    "sobject 0.2.14 (core)",
    "source 2.10.45 (core)",
    "telemetry 2.3.8 (core)",
    "templates 55.5.17 (core)",
    "trust 2.6.22 (core)",
    "user 2.3.39 (core)"
  ]
}

Additional information

@cristiand391 cristiand391 added the bug Issue or pull request that identifies or fixes a bug label Oct 27, 2023
@git2gus
Copy link

git2gus bot commented Oct 27, 2023

This issue has been linked to a new work item: W-14378871

@cristiand391
Copy link
Member Author

fixed here: oclif/core#844

should be available in sf >=v2.16

@jshackell-sfdc
Copy link
Collaborator

This issue is fixed in version 2.16.7 (Nov 8, 2023).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants