C::B IDE的命令行参数

By Bryan Wu @ CBForge (cbforge at gmail dot com)转载请保留

generic-plugin 指定命令行参数可以在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-
Don’t start a DDE server (Windows only).

/ns, –no-splash-screen
Hides the 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 . For example –target=”Release”.

–no-batch-window-close
Keeps the batch log window visible after the has completed.

–batch-build-notify
Shows a message after the 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

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

Related posts:

  1. Code::Blocks编译skyeye步骤
  2. Debugging with Code::Blocks
  3. Code::Blocks IDE in openSUSE 11.1编译和安装指南
  4. QT4+MinGW+Code::Blocks IDE集成
  5. Setting up Code::Blocks to work with SDL - 多媒体编程库
  6. CodeBlocks下SDL编译成功实例
  7. Debugging With CodeLite - CodeLite调试简介
  8. Source Insight feature highlights (SI功能分析)
  9. CB IDE内部结构之-工程文件篇
  10. ProjectManager, Project and ProjectFile in Code::Blocks

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Contact us

Admin: Bryan Wu