C::B IDE的命令行参数
By Bryan Wu @ CBForge (cbforge at gmail dot com)转载请保留
指定命令行参数可以在Windows和Unix下实现,CB在启动并初始化时会读入这些参数并执行相应的动作。
也许在usb portal IDE的实现上也能发挥作用。
<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
Retrieved from “http://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments“
Related posts:
- Code::Blocks编译skyeye步骤
- Debugging with Code::Blocks
- Code::Blocks IDE in openSUSE 11.1编译和安装指南
- QT4+MinGW+Code::Blocks IDE集成
- Setting up Code::Blocks to work with SDL - 多媒体编程库
- CodeBlocks下SDL编译成功实例
- Debugging With CodeLite - CodeLite调试简介
- Source Insight feature highlights (SI功能分析)
- CB IDE内部结构之-工程文件篇
- ProjectManager, Project and ProjectFile in Code::Blocks














