<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Omlk</id>
	<title>Code::Blocks - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Omlk"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Omlk"/>
	<updated>2026-05-27T07:59:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments&amp;diff=9770</id>
		<title>Code::Blocks command line arguments</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments&amp;diff=9770"/>
		<updated>2023-11-13T21:32:51Z</updated>

		<summary type="html">&lt;p&gt;Omlk: /* Command line arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: User Documentation]]&lt;br /&gt;
== Using command line arguments ==&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
# Find the Code::Blocks shortcut in the Desktop or Start menu.&lt;br /&gt;
# Right click on the icon and select Properties.&lt;br /&gt;
# Select the Shortcut tab.&lt;br /&gt;
# Append the command line arguments you want to use to the end of the Target text (behind the quote mark).&lt;br /&gt;
# Run Code::Blocks by using the shortcut you edited.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;C:\Program Files\CodeBlocks\codeblocks.exe&amp;quot; /na /nd&lt;br /&gt;
&lt;br /&gt;
=== *nix ===&lt;br /&gt;
&lt;br /&gt;
# Launch a terminal client, such as XTerm, Gnome Terminal or Konsole.&lt;br /&gt;
# Type &amp;quot;codeblocks&amp;quot; and then append the command line arguments you want to use.&lt;br /&gt;
&lt;br /&gt;
Note: Code::Blocks can not run on a real console, X11 must be running and you must use a graphical terminal emulator.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
 codeblocks --no-splash-screen --debug-log&lt;br /&gt;
&lt;br /&gt;
== Command line arguments ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border: 1px solid gray; border-collapse: collapse;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|- style=&amp;quot;background: #ececec; border: 1px solid gray&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! Argument&lt;br /&gt;
! Function&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|Windows&lt;br /&gt;
|Windows(MSYS2, WSL)&lt;br /&gt;
Linux, Unix, MacOS&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|''&amp;lt;filename&amp;gt;''&lt;br /&gt;
| Specifies the project *.cbp filename or workspace *.workspace filename. For instance ''&amp;lt;filename&amp;gt;'' may be ''c:\some\where\a\project.cbp''. Place this argument at end of command line, just before output redirection if any.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--file='''''&amp;lt;filename&amp;gt;[:line]''&lt;br /&gt;
| Open file in Code::Blocks and optionally jump to a specific line.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/h''', '''/?'''&lt;br /&gt;
|'''--help''', '''--?'''&lt;br /&gt;
| Shows a help message about the command line arguments.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/na'''&lt;br /&gt;
|'''--no-check-associations'''&lt;br /&gt;
| Don't perform any file association checks (Windows only).&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/nd'''&lt;br /&gt;
|'''--no-dde'''&lt;br /&gt;
| Don't start a [http://en.wikipedia.org/wiki/Dynamic_Data_Exchange DDE] server (Windows only).&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/ns'''&lt;br /&gt;
|'''--no-splash-screen'''&lt;br /&gt;
| Hides the splash screen when the application is loading.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/d'''&lt;br /&gt;
|'''--debug-log'''&lt;br /&gt;
| Display application's debug log.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--prefix='''''&amp;lt;str&amp;gt;''&lt;br /&gt;
| Sets the shared data directory prefix.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/p'''&lt;br /&gt;
|'''--personality='''''&amp;lt;str&amp;gt;'', '''--profile='''''&amp;lt;str&amp;gt;''&lt;br /&gt;
| Sets the [[Personalities|personality]] to use. You can use ''ask'' as the parameter to list available personalities.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--rebuild'''&lt;br /&gt;
| Clean and build the project / workspace.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--build'''&lt;br /&gt;
| Build the project / workspace.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--target='''''&amp;lt;str&amp;gt;''&lt;br /&gt;
| Sets target for batch build. For example --target=&amp;quot;Release&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--no-batch-window-close'''&lt;br /&gt;
| Keeps the batch log window visible after the batch build has completed.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--batch-build-notify'''&lt;br /&gt;
| Shows a message after the batch build has completed.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--user-data-dir=&amp;lt;path&amp;gt;'''&lt;br /&gt;
| specify an alternative directory for user settings and user installed plugins&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--script=&amp;lt;str&amp;gt;'''&lt;br /&gt;
| specify a script file to run after loading&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--target=&amp;lt;str&amp;gt;'''&lt;br /&gt;
| the target for the batch build&lt;br /&gt;
|-&lt;br /&gt;
               &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--clean'''&lt;br /&gt;
| clean the project/workspace&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--rebuild'''&lt;br /&gt;
| clean and then build the project/workspace&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--build'''&lt;br /&gt;
| just build the project/workspace&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--verbose'''&lt;br /&gt;
| Enable logging of c::b errors&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''-S''' setName&lt;br /&gt;
|Set &amp;lt;nowiki&amp;gt;''&amp;lt;/nowiki&amp;gt;setName&amp;lt;nowiki&amp;gt;''&amp;lt;/nowiki&amp;gt; to current active set for global variables (after [r13245])&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''-D''' &amp;lt;set&amp;gt;.uservar.mem=val&lt;br /&gt;
|Set the member ''mem'' of uservariable ''uservar'' in set to value ''val''. This overrides the current set value (after [r13245])&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''&amp;gt;''' ''&amp;lt;build log file&amp;gt;''&lt;br /&gt;
| Placed in the very last position of command line, this may be used to redirect standard output to log file, this is not a codeblock option as such, but just a DOS/*nix shell usual standard output redirection&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Omlk</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments&amp;diff=9769</id>
		<title>Code::Blocks command line arguments</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments&amp;diff=9769"/>
		<updated>2023-11-13T21:29:46Z</updated>

		<summary type="html">&lt;p&gt;Omlk: /* Command line arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: User Documentation]]&lt;br /&gt;
== Using command line arguments ==&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
# Find the Code::Blocks shortcut in the Desktop or Start menu.&lt;br /&gt;
# Right click on the icon and select Properties.&lt;br /&gt;
# Select the Shortcut tab.&lt;br /&gt;
# Append the command line arguments you want to use to the end of the Target text (behind the quote mark).&lt;br /&gt;
# Run Code::Blocks by using the shortcut you edited.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;C:\Program Files\CodeBlocks\codeblocks.exe&amp;quot; /na /nd&lt;br /&gt;
&lt;br /&gt;
=== *nix ===&lt;br /&gt;
&lt;br /&gt;
# Launch a terminal client, such as XTerm, Gnome Terminal or Konsole.&lt;br /&gt;
# Type &amp;quot;codeblocks&amp;quot; and then append the command line arguments you want to use.&lt;br /&gt;
&lt;br /&gt;
Note: Code::Blocks can not run on a real console, X11 must be running and you must use a graphical terminal emulator.&lt;br /&gt;
&lt;br /&gt;
'''Example'''&lt;br /&gt;
&lt;br /&gt;
 codeblocks --no-splash-screen --debug-log&lt;br /&gt;
&lt;br /&gt;
== Command line arguments ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;border: 1px solid gray; border-collapse: collapse;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|- style=&amp;quot;background: #ececec; border: 1px solid gray&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! Argument&lt;br /&gt;
! Function&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|Windows&lt;br /&gt;
|Linux, Unix, MacOS&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|''&amp;lt;filename&amp;gt;''&lt;br /&gt;
| Specifies the project *.cbp filename or workspace *.workspace filename. For instance ''&amp;lt;filename&amp;gt;'' may be ''c:\some\where\a\project.cbp''. Place this argument at end of command line, just before output redirection if any.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--file='''''&amp;lt;filename&amp;gt;[:line]''&lt;br /&gt;
| Open file in Code::Blocks and optionally jump to a specific line.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/h''', '''/?'''&lt;br /&gt;
|'''--help''', '''--?'''&lt;br /&gt;
| Shows a help message about the command line arguments.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/na'''&lt;br /&gt;
|'''--no-check-associations'''&lt;br /&gt;
| Don't perform any file association checks (Windows only).&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/nd'''&lt;br /&gt;
|'''--no-dde'''&lt;br /&gt;
| Don't start a [http://en.wikipedia.org/wiki/Dynamic_Data_Exchange DDE] server (Windows only).&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/ns'''&lt;br /&gt;
|'''--no-splash-screen'''&lt;br /&gt;
| Hides the splash screen when the application is loading.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/d'''&lt;br /&gt;
|'''--debug-log'''&lt;br /&gt;
| Display application's debug log.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--prefix='''''&amp;lt;str&amp;gt;''&lt;br /&gt;
| Sets the shared data directory prefix.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|'''/p'''&lt;br /&gt;
|'''--personality='''''&amp;lt;str&amp;gt;'', '''--profile='''''&amp;lt;str&amp;gt;''&lt;br /&gt;
| Sets the [[Personalities|personality]] to use. You can use ''ask'' as the parameter to list available personalities.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--rebuild'''&lt;br /&gt;
| Clean and build the project / workspace.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--build'''&lt;br /&gt;
| Build the project / workspace.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--target='''''&amp;lt;str&amp;gt;''&lt;br /&gt;
| Sets target for batch build. For example --target=&amp;quot;Release&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--no-batch-window-close'''&lt;br /&gt;
| Keeps the batch log window visible after the batch build has completed.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--batch-build-notify'''&lt;br /&gt;
| Shows a message after the batch build has completed.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--user-data-dir=&amp;lt;path&amp;gt;'''&lt;br /&gt;
| specify an alternative directory for user settings and user installed plugins&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--script=&amp;lt;str&amp;gt;'''&lt;br /&gt;
| specify a script file to run after loading&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--target=&amp;lt;str&amp;gt;'''&lt;br /&gt;
| the target for the batch build&lt;br /&gt;
|-&lt;br /&gt;
               &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--clean'''&lt;br /&gt;
| clean the project/workspace&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--rebuild'''&lt;br /&gt;
| clean and then build the project/workspace&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--build'''&lt;br /&gt;
| just build the project/workspace&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''--verbose'''&lt;br /&gt;
| Enable logging of c::b errors&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''-S''' setName&lt;br /&gt;
|Set &amp;lt;nowiki&amp;gt;''&amp;lt;/nowiki&amp;gt;setName&amp;lt;nowiki&amp;gt;''&amp;lt;/nowiki&amp;gt; to current active set for global variables (after [r13245])&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''-D''' &amp;lt;set&amp;gt;.uservar.mem=val&lt;br /&gt;
|Set the member ''mem'' of uservariable ''uservar'' in set to value ''val''. This overrides the current set value (after [r13245])&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|'''&amp;gt;''' ''&amp;lt;build log file&amp;gt;''&lt;br /&gt;
| Placed in the very last position of command line, this may be used to redirect standard output to log file, this is not a codeblock option as such, but just a DOS/*nix shell usual standard output redirection&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Omlk</name></author>
	</entry>
</feed>