Commit 7992d6f8 authored by André Anjos's avatar André Anjos

Remove traces of internal server from file; By default, do local dir dump; Use...

Remove traces of internal server from file; By default, do local dir dump; Use an optional argument instead of an option
parent 283872dc
Pipeline #13386 passed with stages
in 5 minutes and 50 seconds
......@@ -140,8 +140,13 @@ def upload(arguments):
def upload_command(subparsers):
"""Adds a new 'upload' subcommand to your parser"""
# default destination for the file to be uploaded is on the local directory
curdir = 'file://' + os.path.realpath(os.curdir)
parser = subparsers.add_parser('upload', help=upload.__doc__)
parser.add_argument("--destination", default="http://beatubulatest.lab.idiap.ch/public-upload/databases/latest")
parser.add_argument("url", default=curdir, nargs='?', help='Pass the URL ' \
'for uploading your contribution (if not set, uses default: ' \
'\'%(default)s\')')
parser.set_defaults(func=upload)
return parser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment