Skip to content

Use the declared property name in the defaultAsFlag sample - #1004

Open
nu11waredev wants to merge 1 commit into
apple:mainfrom
nu11waredev:docs/defaultasflag-sample-property
Open

nu11waredev wants to merge 1 commit into
apple:mainfrom
nu11waredev:docs/defaultasflag-sample-property

Conversation

@nu11waredev

Copy link
Copy Markdown

The defaultAsFlag sample in DeclaringArguments ("Creating hybrid flag/option behavior with defaultAsFlag") declares a property named export but prints format, so it does not compile (cannot find 'format' in scope). The comments and the list below it also say format. They now say export.

Checked by building the sample in a scratch package that depends on this checkout: it fails before the change and builds and runs as the article describes after it.

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

The sample in DeclaringArguments declares a property named export but reads format, so it does not compile, and its notes name format where the property is export.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant