1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 from caldavclientlibrary.browser.command import Command
18 from caldavclientlibrary.browser.command import WrongOptions
19 import getopt
20 import shlex
21
23
27
29 opts, args = getopt.getopt(shlex.split(options), '')
30 if len(opts) or len(args) > 1:
31 print self.usage(name)
32 raise WrongOptions()
33 self.shell.help(cmd = (None if len(args) == 0 else args[0]))
34 return True
35
37 return """Usage: %s [CMD]
38 CMD is the name of a command.
39 """ % (name,)
40
42 return name in ("help",)
43
45 return "Displays help about a command."
46