Rename main function

This commit is contained in:
Antonio J. Delgado 2021-01-13 17:23:14 +02:00
parent dda94af474
commit 45ab55bcc0

View file

@ -60,10 +60,10 @@ class __project_codename__:
@click.option('--log-file', '-l', help="File to store all debug messages.") @click.option('--log-file', '-l', help="File to store all debug messages.")
#@click.option("--dummy","-n" is_flag=True, help="Don't do anything, just show what would be done.") # Don't forget to add dummy to parameters of main function #@click.option("--dummy","-n" is_flag=True, help="Don't do anything, just show what would be done.") # Don't forget to add dummy to parameters of main function
@click_config_file.configuration_option() @click_config_file.configuration_option()
def main(debug_level, log_file): def __main__(debug_level, log_file):
object = __project_codename__(debug_level, log_file) object = __project_codename__(debug_level, log_file)
object._log.info('Initialized __project_codename__') object._log.info('Initialized __project_codename__')
if __name__ == "__main__": if __name__ == "__main__":
main() __main__()