Difference between revisions of "Code::Blocks command line arguments"
From Code::Blocks
OBFusCATed (talk | contribs) (→*nix) |
BlueHazzard (talk | contribs) (Added command line parameter user-data-dir) |
||
Line 107: | Line 107: | ||
| '''>''' ''<build log file>'' | | '''>''' ''<build log file>'' | ||
| 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 | | 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 | ||
+ | |- | ||
+ | |||
+ | |- | ||
+ | | '''--user-data-dir=<path>''' | ||
+ | | specify an alternative directory for user settings and user installed plugins | ||
|- | |- | ||
|} | |} |
Revision as of 11:33, 11 February 2014
Using command line arguments
Windows
- Find the Code::Blocks shortcut in the Desktop or Start menu.
- Right click on the icon and select Properties.
- Select the Shortcut tab.
- Append the command line arguments you want to use to the end of the Target text (behind the quote mark).
- Run Code::Blocks by using the shortcut you edited.
Example
"C:\Program Files\CodeBlocks\codeblocks.exe" /na /nd
*nix
- Launch a terminal client, such as XTerm, Gnome Terminal or Konsole.
- Type "codeblocks" and then append the command line arguments you want to use.
Note: Code::Blocks can not run on a real console, X11 must be running and you must use a graphical terminal emulator.
Example
codeblocks --no-splash-screen --debug-log
Command line arguments
Argument | Function |
---|---|
<filename> | Specifies the project *.cbp filename or workspace *.workspace filename. For instance <filename> may be c:\some\where\a\project.cbp. Place this argument at end of command line, just before output redirection if any. |
--file=<filename>[:line] | Open file in Code::Blocks and optionally jump to a specific line. |
/h, --help, /?, --? | Shows a help message about the command line arguments. |
/na, --no-check-associations | Don't perform any file association checks (Windows only). |
/nd, --no-dde | Don't start a DDE server (Windows only). |
/ns, --no-splash-screen | Hides the splash screen when the application is loading. |
/d, --debug-log | Display application's debug log. |
--prefix=<str> | Sets the shared data directory prefix. |
/p, --personality=<str>, --profile=<str> | Sets the personality to use. You can use ask as the parameter to list available personalities. |
--rebuild | Clean and build the project / workspace. |
--build | Build the project / workspace. |
--target=<str> | Sets target for batch build. For example --target="Release". |
--no-batch-window-close | Keeps the batch log window visible after the batch build has completed. |
--batch-build-notify | Shows a message after the batch build has completed. |
> <build log file> | 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 |
--user-data-dir=<path> | specify an alternative directory for user settings and user installed plugins |