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.

20 lines
503 B

import daemon
from argv.common import arg_debug, arg_help, arg_version
def init_daemon_sub_parser(subparsers):
daemon_parser = subparsers.add_parser(
'daemon',
description="Running dreampower on daemon mode.",
help="Running dreampower on daemon mode.",
add_help=False
)
daemon_parser.set_defaults(func=daemon.main)
# add daemon arguments
arg_help(daemon_parser)
arg_debug(daemon_parser)
arg_version(daemon_parser)
return daemon_parser