As an alternative to passing the -u option to the amqp-tools could an environment variable like amqp_url be read with getenv() if defined?
|
struct poptOption connect_options[] = { |
|
{"url", 'u', POPT_ARG_STRING, &amqp_url, 0, "the AMQP URL to connect to", |
|
"amqp://..."}, |
As an alternative to passing the
-uoption to theamqp-toolscould an environment variable likeamqp_urlbe read withgetenv()if defined?rabbitmq-c/tools/common.c
Lines 142 to 144 in 8b7471e