diff options
Diffstat (limited to 'src/biruda.c')
-rw-r--r-- | src/biruda.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/biruda.c b/src/biruda.c index 788bc13..f5f6ed0 100644 --- a/src/biruda.c +++ b/src/biruda.c @@ -36,6 +36,8 @@ #include "port.h" +#include "biruda_conf.c" + static const char *DEFAULT_CONFIG_FILE = "/etc/biruda/biruda.conf"; static const unsigned int DEFAULT_WEBSERVER_PORT = 8080; static const char *DEFAULT_WEBSERVER_HOST = "localhost"; @@ -340,6 +342,11 @@ int main( int argc, char *argv[] ) exit( EXIT_FAILURE ); } + if( args_info.generate_config_given ) { + printf( "%*s", biruda_conf_len, biruda_conf ); + exit( EXIT_SUCCESS ); + } + if( args_info.guess_env_given ) { print_guessed_env( args_info.human_readable_given ); exit( EXIT_SUCCESS ); |