old_contents: # -*- coding: utf-8 -*-
  """
      Command line script main
  """
  
  from rapydo.do.app import Application
  import better_exceptions as be
  
  
  def main():
      be  # activate better exceptions
      Application()
  
  
  if __name__ == '__main__':
      main()
  
new_contents: # -*- coding: utf-8 -*-
  
  """
      Command line script: main function
  """
  
  import better_exceptions as be
  from rapydo.do.app import Application
  from rapydo.utils.logs import get_logger
  
  log = get_logger(__name__)
  
  
  def main():
      be  # activate better exceptions
      try:
          Application()
      except KeyboardInterrupt:
          log.critical("Interrupted by the user")
      else:
          log.verbose("Application completed")
  
  
  if __name__ == '__main__':
      main()
  
subject: Handle nicely keyboard interruption (ctrl+c)