# Unrecognized arguments when passing vars from command line

**URL:** <https://discourse.getdbt.com/t/unrecognized-arguments-when-passing-vars-from-command-line/5313>\
**Category:** Help\
**Tags:** variables\
**Created:** [November 9, 2022, 1:49pm UTC](https://discourse.getdbt.com/t/unrecognized-arguments-when-passing-vars-from-command-line/5313 "2022-11-09T13:49:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaojun05](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@gaojun05](https://discourse.getdbt.com/u/gaojun05)\
**Post date:** [November 9, 2022, 1:49pm UTC](https://discourse.getdbt.com/t/unrecognized-arguments-when-passing-vars-from-command-line/5313/1 "2022-11-09T13:49:49Z")

</div>

Hi team,

I am having an issue where it keeps throwing me error of unrecognized arguments when I tried to pass more than one argument from the command line in dbt. I am pretty sure I have followed the syntax/format of the commands by following this guide: [Project variables | dbt Developer Hub](https://docs.getdbt.com/docs/build/project-variables). Would be appreciated if someone can give out some pointer here. Thank you.

dbt command:  
`dbt run --vars '{"target_table":"table1", "source_table": "table2"}'`

Error thrown:  
`dbt: error: unrecognized arguments: "source_table": "table2"}`

---

<div class="post-metadata">

**Author:** ![minhajpasha](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/minhajpasha/32/1159_2.png) [@minhajpasha](https://discourse.getdbt.com/u/minhajpasha)\
**Post date:** [November 17, 2022, 7:25pm UTC](https://discourse.getdbt.com/t/unrecognized-arguments-when-passing-vars-from-command-line/5313/2 "2022-11-17T19:25:13Z")

</div>

Hello @gaojun05

Can you please share the dbt model which refers these vars?

Regards  
minhaj
