1
2 """
3 download plugin
4
5 Plugin read by omero.cli.Cli during initialization. The method(s)
6 defined here will be added to the Cli class for later use.
7
8 Copyright 2007 Glencoe Software, Inc. All rights reserved.
9 Use is subject to license terms supplied in LICENSE.txt
10
11 """
12
13 from omero.cli import BaseControl
14
16
17 - def help(self, args = None):
18 self.ctx.out(
19 """
20 Syntax: %(program_name)s download <id> <filename>
21 Download the given file id to the given file name
22 """ )
23
33
34 try:
35 register("download", DownloadControl)
36 except NameError:
37 DownloadControl()._main()
38