X-Git-Url: https://git.madduck.net/code/mailplate.git/blobdiff_plain/817a7c757fc641e02a6fc13e04a61d3307b0ce8b..08674f5191c95221b9e3a3d348913d1b2e916d17:/mailplate diff --git a/mailplate b/mailplate index 439fc73..4b03c05 100755 --- a/mailplate +++ b/mailplate @@ -235,6 +235,7 @@ helpers = { 'get_quote' : 'fortune -s' } if not os.path.exists(CONFFILE): # conffile does not exist, let's create it with defaults. + options.verbose = True if not os.path.isdir(MAILPLATEDIR): info('configuration directory not found, creating: ' + MAILPLATEDIR) @@ -325,8 +326,11 @@ elif (options.auto or options.menu) and templname: sys.exit(posix.EX_USAGE) elif not templname and not (options.auto or options.menu): - err('no template specified') - sys.exit(posix.EX_USAGE) + if default_templname is not None: + templname = default_templname + else: + err('no template specified') + sys.exit(posix.EX_USAGE) elif options.menu: err('--menu mode not yet implemented')