# Finding possible keyword arguments

**URL:** <https://discourse.julialang.org/t/finding-possible-keyword-arguments/40752>\
**Category:** Internals & Design\
**Tags:** keyword-arguments\
**Created:** [June 4, 2020, 6:24pm UTC](https://discourse.julialang.org/t/finding-possible-keyword-arguments/40752 "2020-06-04T18:24:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jonniedie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonniedie/32/12842_2.png) [@jonniedie](https://discourse.julialang.org/u/jonniedie)\
**Post date:** [June 5, 2020, 3:03pm UTC](https://discourse.julialang.org/t/finding-possible-keyword-arguments/40752/6 "2020-06-05T15:03:09Z")

</div>

+1. In addition to it being hard to find keyword arguments for a function, there can be pretty bad consequences for passing in the wrong or misspelled keyword arguments in some cases. For example, when a function has a `kwargs...` slurp and doesn’t use those the `kwargs`, no errors will be thrown for misspelled keyword arguments. Example:

```julia
julia> badfun(;x=1, y=2, kwargs...) = x*y^2
badfun (generic function with 1 method)

julia> badfun(;y=5)
25

julia> badfun(;why=5)
4

```

---

_[View the full topic](https://discourse.julialang.org/t/finding-possible-keyword-arguments/40752)._
