2 from textwrap
import dedent
3 from ceph_volume
import terminal
15 help = 'Use LVM and LVM-based technologies like dmcache to deploy OSDs'
18 Use LVM and LVM-based technologies like dmcache to deploy OSDs
24 'activate': activate
.Activate
,
26 'prepare': prepare
.Prepare
,
27 'create': create
.Create
,
28 'trigger': trigger
.Trigger
,
33 def __init__(self
, argv
):
36 def print_help(self
, sub_help
):
37 return self
._help
.format(sub_help
=sub_help
)
40 terminal
.dispatch(self
.mapper
, self
.argv
)
41 parser
= argparse
.ArgumentParser(
42 prog
='ceph-volume lvm',
43 formatter_class
=argparse
.RawDescriptionHelpFormatter
,
44 description
=self
.print_help(terminal
.subhelp(self
.mapper
)),
46 parser
.parse_args(self
.argv
)
47 if len(self
.argv
) <= 1:
48 return parser
.print_help()