# Custom command-line paramaters and #defines

**URL:** <https://forums.unrealengine.com/t/custom-command-line-paramaters-and-defines/490489>\
**Category:** Platform & Builds\
**Tags:** target, command-line, build, unreal-engine, packaging-projects, question\
**Created:** [November 1, 2021, 8:04pm UTC](https://forums.unrealengine.com/t/custom-command-line-paramaters-and-defines/490489 "2021-11-01T20:04:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![byg\_ben](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@byg\_ben](https://forums.unrealengine.com/u/byg_ben)\
**Post date:** [November 1, 2021, 8:04pm UTC](https://forums.unrealengine.com/t/custom-command-line-paramaters-and-defines/490489/1 "2021-11-01T20:04:03Z")

</div>

I would like to pass custom parameters to the Unreal Build Tool that end up becoming #defines that I can use in my code to strip out certain features.

I heard this is possible by reading them in Target.cs and then passing them on to Build.cs but I can’t work out how to do it. Does anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![xaot88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xaot88](https://forums.unrealengine.com/u/xaot88)\
**Post date:** [May 26, 2025, 12:39am UTC](https://forums.unrealengine.com/t/custom-command-line-paramaters-and-defines/490489/2 "2025-05-26T00:39:18Z")

</div>

I’m also looking for the answer to this question! Googling around, I found this exact match for my question, but no answers (yet) 😃
