2 from textwrap
import dedent
3 from ceph_volume
import terminal
14 help = 'Use LVM and LVM-based technologies like dmcache to deploy OSDs'
17 Use LVM and LVM-based technologies like dmcache to deploy OSDs
23 'activate': activate
.Activate
,
24 'prepare': prepare
.Prepare
,
25 'create': create
.Create
,
26 'trigger': trigger
.Trigger
,
31 def __init__(self
, argv
):
34 def print_help(self
, sub_help
):
35 return self
._help
.format(sub_help
=sub_help
)
38 terminal
.dispatch(self
.mapper
, self
.argv
)
39 parser
= argparse
.ArgumentParser(
40 prog
='ceph-volume lvm',
41 formatter_class
=argparse
.RawDescriptionHelpFormatter
,
42 description
=self
.print_help(terminal
.subhelp(self
.mapper
)),
44 parser
.parse_args(self
.argv
)
45 if len(self
.argv
) <= 1:
46 return parser
.print_help()