basho/rebar — pull request #280 by norton (2012-07-28 14:13:45+00:00)
Title: Add missing 'defines' to global config

-D passed to rebar on the command line via getopt were ignored by the compile and test-compile commands. This behaviour looks like a regression.

$ ./rebar -h
Usage: rebar [-h] [-c] [-v ] [-V] [-f] [-D ] [-j ] [-C ] [-p] [-k] [var=value,...]

-h, --help	Show the program options
-c, --commands	Show available commands
-v, --verbose	Verbosity level (-v, -vv, -vvv, --verbose 3). Default: 0
-V, --version	Show version information
-f, --force	Force
-D	Define compiler macro
-j, --jobs	Number of concurrent workers a command may use. Default: 3
-C, --config	Rebar config file to use
-p, --profile	Profile this run of rebar
-k, --keep-going	Keep running after a command fails
var=value	rebar global variables (e.g. force=1)
command	Command to run (e.g. compile)