"""
Various operations that do not fall into a particular category
"""

from derek.cli_registry import Argument, command

# To be reviewed

@command([
    Argument('-D', action='store_true',
             help='run dinstall after upload'),
    Argument('-e', '--delayed', metavar='DELAYED', default=None,
             help="Upload to a delayed queue. Takes an argument from 0 to 15"),
    Argument('-f', '--force', action='store_true', help="Force an upload"),
    Argument('-l', action='store_true', help="Run lintian before upload"),
    Argument('-U', action='store_true',
             help="Do not write a .upload file after uploading"),
    Argument('-s', action='store_true', help="Simulate the upload only"),
    Argument('-u', action='store_true', help="Don't check GnuPG signature"),
    Argument('-V', action='store_true',
             help="Check the package version and then upload it"),
    Argument('-o', '--check-only', action='store_true',
                help='check package(s) only and do not upload')
])
def upload(_env):
    "upload new package(s)"

@command([
#       {arch, $a, "arch", {string, default},
#       "architecture (default: " ?DEFAULT_ARCH ")"}
], name='import')
def do_import(_env):
    "import an existing repository"

@@ -1247,8 +1247,100 @@
 sitory%22%0A
+%0A@command(%5B%0A%5D, name='download')%0Adef download(_env):%0A    %22%22%22%0A    download package(s)%0A    %22%22%22%0A

add download command