# How to send "-X" option to javadoc?

**URL:** <https://discuss.gradle.org/t/how-to-send-x-option-to-javadoc/23384>\
**Category:** Help/Discuss\
**Created:** [July 20, 2017, 11:02pm UTC](https://discuss.gradle.org/t/how-to-send-x-option-to-javadoc/23384 "2017-07-20T23:02:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [January 25, 2019, 7:11pm UTC](https://discuss.gradle.org/t/how-to-send-x-option-to-javadoc/23384/5 "2019-01-25T19:11:57Z")

</div>

If it has no value, it is a boolean option.  
Just do `addBooleanOption 'Xdoclint:none', true` and it works fine.

---

_[View the full topic](https://discuss.gradle.org/t/how-to-send-x-option-to-javadoc/23384)._
