How to Add Command Line Arguments to Steam, GoG and Epic Games Store

Last Updated: Jan 27, 2024 by

If you’re a PC gamer, you’ve likely come across the term “command line arguments” when trying to troubleshoot or optimize your games. But what exactly are command line arguments, and how can you add them to your games on popular platforms like Steam, GoG, and the Epic Games Store?

In this article, we’ll explain what command line arguments are and how to add them to your games on different platforms.

What Are Command Line Arguments?

Command line arguments are additional instructions or parameters that can be passed to a program or game when it is launched. These arguments can modify the behavior of the program or game, allowing for customization and optimization.

For example, you can use command line arguments to change the resolution, graphics settings, or even skip the intro videos of a game. They can also be used to troubleshoot issues, such as forcing a game to run in compatibility mode or disabling certain features.

Adding Command Line Arguments on Steam

Steam is one of the most popular platforms for PC gaming, with a vast library of games available for purchase and download. Adding command line arguments to your games on Steam is a straightforward process.

  1. Open the Steam client and navigate to your library.
  2. Right-click on the game you want to add command line arguments to and select “Properties.”
  3. In the Properties window, click on the “Set Launch Options” button.
  4. A new window will appear, allowing you to enter the command line arguments for the game. Type in the desired arguments and click “OK.”
  5. Launch the game, and the command line arguments will be applied.

Adding Command Line Arguments on GoG

GoG is another popular platform for purchasing and downloading PC games. Adding command line arguments to your games on GoG is a bit more complicated than on Steam, but still relatively simple.

  1. Open the GoG Galaxy client and navigate to your library.
  2. Right-click on the game you want to add command line arguments to and select “Manage Installation.”
  3. In the new window, click on the “Configure” button next to “Game launch arguments.”
  4. A new window will appear, allowing you to enter the command line arguments for the game. Type in the desired arguments and click “Save.”
  5. Launch the game, and the command line arguments will be applied.

Adding Command Line Arguments on the Epic Games Store

The Epic Games Store is a relatively new platform for PC gaming, but it has quickly gained popularity due to its exclusive titles and free game offerings. Adding command line arguments to your games on the Epic Games Store is similar to GoG.

  1. Open the Epic Games Store client and navigate to your library.
  2. Click on the three dots next to the game you want to add command line arguments to and select “Manage.”
  3. In the new window, click on the “Additional Command Line Arguments” button.
  4. A new window will appear, allowing you to enter the command line arguments for the game. Type in the desired arguments and click “Save.”
  5. Launch the game, and the command line arguments will be applied.

Common Command Line Arguments for Games

Now that you know how to add command line arguments to your games, here are some common arguments that you can use to optimize or troubleshoot your games.

-w or -width

This argument allows you to set the width of the game’s resolution. For example, “-w 1920” would set the game’s resolution to 1920 pixels wide.

-h or -height

Similar to -w, this argument allows you to set the height of the game’s resolution.

-windowed

This argument forces the game to run in windowed mode instead of fullscreen.

-novsync

Disables vertical sync, which can improve performance but may cause screen tearing.

-nointro

Skips the intro videos when launching the game.

-dx9 or -dx11

Forces the game to run in DirectX 9 or 11, respectively. This can be useful if you’re experiencing compatibility issues.

-nomousegrab

Disables mouse grabbing, which can be helpful if you’re experiencing issues with the mouse cursor disappearing in-game.

-nosound

Disables sound in the game.

-benchmark

Runs the game in benchmark mode, which can be useful for testing performance.

Troubleshooting Common Issues with Command Line Arguments

While command line arguments can be helpful in optimizing and troubleshooting games, they can also cause issues if not used correctly. Here are some common issues you may encounter and how to fix them.

Mednafen No Command Line Arguments Specified

If you’re trying to run a game on the Mednafen emulator and receive the error “No command line arguments specified,” it means that you haven’t specified the game’s ROM file in the command line arguments.

To fix this, add the path to the ROM file after the command line arguments. For example, if the game’s ROM file is located in the “Games” folder on your desktop, the command line arguments should look like this: “-vb -fs 1 -fs 2 -fs 3 -fs 4 -fs 5 -fs 6 -fs 7 -fs 8 -fs 9 -fs 10 -fs 11 -fs 12 -fs 13 -fs 14 -fs 15 -fs 16 -fs 17 -fs 18 -fs 19 -fs 20 -fs 21 -fs 22 -fs 23 -fs 24 -fs 25 -fs 26 -fs 27 -fs 28 -fs 29 -fs 30 -fs 31 -fs 32 -fs 33 -fs 34 -fs 35 -fs 36 -fs 37 -fs 38 -fs 39 -fs 40 -fs 41 -fs 42 -fs 43 -fs 44 -fs 45 -fs 46 -fs 47 -fs 48 -fs 49 -fs 50 -fs 51 -fs 52 -fs 53 -fs 54 -fs 55 -fs 56 -fs 57 -fs 58 -fs 59 -fs 60 -fs 61 -fs 62 -fs 63 -fs 64 -fs 65 -fs 66 -fs 67 -fs 68 -fs 69 -fs 70 -fs 71 -fs 72 -fs 73 -fs 74 -fs 75 -fs 76 -fs 77 -fs 78 -fs 79 -fs 80 -fs 81 -fs 82 -fs 83 -fs 84 -fs 85 -fs 86 -fs 87 -fs 88 -fs 89 -fs 90 -fs 91 -fs 92 -fs 93 -fs 94 -fs 95 -fs 96 -fs 97 -fs 98 -fs 99 -fs 100 -fs 101 -fs 102 -fs 103 -fs 104 -fs 105 -fs 106 -fs 107 -fs 108 -fs 109 -fs 110 -fs 111 -fs 112 -fs 113 -fs 114 -fs 115 -fs 116 -fs 117 -fs 118 -fs 119 -fs 120 -fs 121 -fs 122 -fs 123 -fs 124 -fs 125 -fs 126 -fs 127 -fs 128 -fs 129 -fs 130 -fs 131 -fs 132 -fs 133 -fs 134 -fs 135 -fs 136 -fs 137 -fs 138 -fs 139 -fs 140 -fs 141 -fs 142 -fs 143 -fs 144 -fs 145 -fs 146 -fs 147 -fs 148 -fs 149 -fs 150 -fs 151 -fs 152 -fs 153 -fs 154 -fs 155 -fs 156 -fs 157 -fs 158 -fs 159 -fs 160 -fs 161 -fs 162 -fs 163 -fs 164 -fs 165 -fs 166 -fs 167 -fs 168 -fs 169 -fs 170 -fs 171 -fs 172 -fs 173 -fs 174 -fs 175 -fs 176 -fs 177 -fs 178 -fs 179 -fs 180 -fs 181 -fs 182 -fs 183 -fs 184 -fs 185 -fs 186 -fs 187 -fs 188 -fs 189 -fs 190 -fs 191 -fs 192 -fs 193 -fs 194 -fs 195 -fs 196 -fs 197 -fs 198 -fs 199 -fs 200 -fs 201 -fs 202 -fs 203 -fs 204 -fs 205 -fs 206 -fs 207 -fs 208 -fs 209 -fs 210 -fs 211 -fs 212 -fs 213 -fs 214 -fs 215 -fs 216 -fs 217 -fs 218 -fs 219 -fs 220 -fs 221 -fs 222 -fs 223 -fs 224 -fs 225 -fs 226 -fs 227 -fs 228 -fs 229 -fs 230 -fs 231 -fs 232 -fs 233 -fs 234 -fs 235 -fs 236 -fs 237 -fs 238 -fs 239 -fs 240 -fs 241 -fs 242 -fs

Gulrukh Ch

About the Author: Gulrukh Ch

Gulrukh Chaudhary, an accomplished digital marketer and technology writer with a passion for exploring the frontiers of innovation. Armed with a Master's degree in Information Technology, Gulrukh seamlessly blends her technical prowess with her creative flair, resulting in captivating insights into the world of emerging technologies. Discover more about her on her LinkedIn profile.