# Get the argument names of an function

**URL:** <https://discourse.julialang.org/t/get-the-argument-names-of-an-function/32902>\
**Category:** New to Julia\
**Created:** [January 3, 2020, 1:04am UTC](https://discourse.julialang.org/t/get-the-argument-names-of-an-function/32902 "2020-01-03T01:04:33Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [June 28, 2022, 10:58am UTC](https://discourse.julialang.org/t/get-the-argument-names-of-an-function/32902/6 "2022-06-28T10:58:15Z")

</div>

The procedure in [Get the argument names of an function - #3 by tim.holy](https://discourse.julialang.org/t/get-the-argument-names-of-an-function/32902/3) still works; just stepping through to see how Julia does something is a useful skill for many questions. You’ll discover `Base.kwarg_decl` that way.

```julia
julia> m = @which sum(rand(3))
sum(a::AbstractArray; dims, kw...) in Base at reducedim.jl:994

julia> Base.kwarg_decl(m)
2-element Vector{Symbol}:
 :dims
 Symbol("kw...")

```

---

_[View the full topic](https://discourse.julialang.org/t/get-the-argument-names-of-an-function/32902)._
