...if you run Code::Blocks with the /? option, you'll see all available command line switches.
These are:
Usage: codeblocks.exe [/h] [/?] [--safe-mode] [/na] [/nd] [/ns] [--multiple-instance] [/d] [/nc] [/v] [--prefix <str>] [/p <str>] [--no-log] [--log-to-file] [--debug-log-to-file] [--profile <str>] [--rebuild] [--build] [--clean] [--target <str>] [--no-batch-window-close] [--batch-build-notify] [--script <str>] [--file <str>] [filename(s)...]
/h, --help show this help message
/?, --? show this help message (alias for help)
--safe-mode load in safe mode (all plugins will be disabled)
/na, --no-check-associations don't perform any association checks
/nd, --no-dde don't start a DDE server
/ns, --no-splash-screen don't display a splash screen while loading
--multiple-instance allow running multiple instances
/d, --debug-log display application's debug log
/nc, --no-crash-handler don't use the crash handler (useful for debugging C::B)
/v, --verbose show more debugging messages
--prefix=<str> the shared data dir prefix
/p, --personality=<str> the personality to use: "ask" or <personality-name>
--no-log turn off the application log
--log-to-file redirect application log to a file
--debug-log-to-file redirect application debug log to a file
--profile=<str> synonym to personality
--rebuild clean and then build the project/workspace
--build just build the project/workspace
--clean clean the project/workspace
--target=<str> the target for the batch build
--no-batch-window-close do not auto-close log window when batch build is done
--batch-build-notify show message when batch build is done
--script=<str> execute script file
--file=<str> open file and optionally jump to specific line (file[:line])
...in particular:
--batch-build-notify show message when batch build is done