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

[FAQ] How do we output fields with leading underscores #476

Open
Peefy opened this issue Oct 25, 2024 · 1 comment
Open

[FAQ] How do we output fields with leading underscores #476

Peefy opened this issue Oct 25, 2024 · 1 comment
Labels
faq good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Peefy
Copy link
Contributor

Peefy commented Oct 25, 2024

No description provided.

@Peefy Peefy added good first issue Good for newcomers help wanted Extra attention is needed faq labels Oct 25, 2024
@Peefy
Copy link
Contributor Author

Peefy commented Oct 25, 2024

Q: How do we output fields with leading underscores
A: We can use the --show-hidden/-H flag when use the KCL CLI to run KCL files. e.g.

  • main.k
a = 1
_b = 2

The output maybe as follows with the command kcl run main.k -H

a: 1
_b: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant