You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

daemon.py 503B

12345678910111213141516171819
  1. import daemon
  2. from argv.common import arg_debug, arg_help, arg_version
  3. def init_daemon_sub_parser(subparsers):
  4. daemon_parser = subparsers.add_parser(
  5. 'daemon',
  6. description="Running dreampower on daemon mode.",
  7. help="Running dreampower on daemon mode.",
  8. add_help=False
  9. )
  10. daemon_parser.set_defaults(func=daemon.main)
  11. # add daemon arguments
  12. arg_help(daemon_parser)
  13. arg_debug(daemon_parser)
  14. arg_version(daemon_parser)
  15. return daemon_parser