# Wrapper functions guidlines

**URL:** <https://discourse.julialang.org/t/wrapper-functions-guidlines/27387>\
**Category:** General Usage\
**Tags:** question, type\
**Created:** [August 10, 2019, 11:01am UTC](https://discourse.julialang.org/t/wrapper-functions-guidlines/27387 "2019-08-10T11:01:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [August 10, 2019, 10:54pm UTC](https://discourse.julialang.org/t/wrapper-functions-guidlines/27387/5 "2019-08-10T22:54:09Z")

</div>

> [@Amin\_Yahyaabadi](#):
>
> How can I pass all the input arguments to an inner function? (multiple arguments)

this example can help

```julia
function mysum(args...)
length(args)==1 && throw(ArgumentError("I can't sum just one element"))
return sum(args...)
end

```

---

_[View the full topic](https://discourse.julialang.org/t/wrapper-functions-guidlines/27387)._
