# Keyword Arguments vs Dict

**URL:** <https://discourse.julialang.org/t/keyword-arguments-vs-dict/33500>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 17, 2020, 6:31pm UTC](https://discourse.julialang.org/t/keyword-arguments-vs-dict/33500 "2020-01-17T18:31:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jakub\_Wronowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jakub_wronowski/32/204030_2.png) [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)\
**Post date:** [January 17, 2020, 7:03pm UTC](https://discourse.julialang.org/t/keyword-arguments-vs-dict/33500/2 "2020-01-17T19:03:10Z")

</div>

Not sure if I understand the question, but you can take ArgParse dictionary and convert to named tuple, then call your method with keyword args by spreading this tuple.

> [@How to make a named tuple from a dictionary?](https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899):
>
> Is there a simple way to make a named tuple from a Dict{Symbol, T}?

Example:

```julia
function asdf(x = 1, y = 4) return x, y; end
nt = (x=4, y=134)
asdf(nt...)

```

---

_[View the full topic](https://discourse.julialang.org/t/keyword-arguments-vs-dict/33500)._
