cli.py 文件源码

python
阅读 43 收藏 0 点赞 0 评论 0

项目:stl 作者: pavelsof 项目源码 文件源码
def _init_start(self):
        """
        Inits the subparser that handles the start command.
        """
        def start(core, args):
            task = ' '.join(args.task) if args.task else ''
            return core.start(task=task)

        usage = 'stl start [task]'
        desc = (
            'make a log that you are starting to work'
        )

        subp = self.subparsers.add_parser('start', usage=usage,
            description=desc, help=desc)

        subp.add_argument('task', nargs=argparse.REMAINDER,
            help='the task that you are about to start working on')

        subp.set_defaults(func=start)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号