We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
次のコードは説明文から --gfm が指定されていない場合、デフォルトの false が有効(=上書きされない) ことを意図されていると理解しましたが、--gfm が指定されていない場合、program.opts() は { gfm: undefined } となり、undefined で上書きされてしまう挙動となりました。
--gfm
false
program.opts()
{ gfm: undefined }
undefined
const cliOptions = { gfm: false, ...program.opts(), };
The text was updated successfully, but these errors were encountered:
スプレッドではなく gfm: program.opts().gfm ?? false だといいのかな?ES2020対応もしたし
gfm: program.opts().gfm ?? false
Sorry, something went wrong.
今週末テストしてみます
lacolaco
Successfully merging a pull request may close this issue.
該当ページ
説明
次のコードは説明文から
--gfm
が指定されていない場合、デフォルトのfalse
が有効(=上書きされない) ことを意図されていると理解しましたが、--gfm
が指定されていない場合、program.opts()
は{ gfm: undefined }
となり、undefined
で上書きされてしまう挙動となりました。The text was updated successfully, but these errors were encountered: