mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
cmdline: change "--server" to "--node-url" and make it have no default value
This commit is contained in:
parent
014de50354
commit
922663a7e2
@ -8,8 +8,8 @@ class VDriveOptions(BaseOptions, usage.Options):
|
|||||||
["vdrive", "d", "global",
|
["vdrive", "d", "global",
|
||||||
"which virtual drive to use: 'global' or 'private'"],
|
"which virtual drive to use: 'global' or 'private'"],
|
||||||
|
|
||||||
["server", "s", "http://tahoebs1.allmydata.com:8011/",
|
["node-url", "u", None,
|
||||||
"which vdrive server to use, a URL like http://example.com/"],
|
"URL of the tahoe node to use, a URL like \"http://127.0.0.1:8888\""],
|
||||||
]
|
]
|
||||||
|
|
||||||
class ListOptions(VDriveOptions):
|
class ListOptions(VDriveOptions):
|
||||||
@ -52,7 +52,7 @@ subCommands = [
|
|||||||
|
|
||||||
def list(config, stdout, stderr):
|
def list(config, stdout, stderr):
|
||||||
from allmydata.scripts import tahoe_ls
|
from allmydata.scripts import tahoe_ls
|
||||||
rc = tahoe_ls.list(config['server'],
|
rc = tahoe_ls.list(config['node-url'],
|
||||||
config['vdrive'],
|
config['vdrive'],
|
||||||
config['vdrive_filename'])
|
config['vdrive_filename'])
|
||||||
return rc
|
return rc
|
||||||
@ -61,7 +61,7 @@ def get(config, stdout, stderr):
|
|||||||
from allmydata.scripts import tahoe_get
|
from allmydata.scripts import tahoe_get
|
||||||
vdrive_filename = config['vdrive_filename']
|
vdrive_filename = config['vdrive_filename']
|
||||||
local_filename = config['local_filename']
|
local_filename = config['local_filename']
|
||||||
rc = tahoe_get.get(config['server'],
|
rc = tahoe_get.get(config['node-url'],
|
||||||
config['vdrive'],
|
config['vdrive'],
|
||||||
vdrive_filename,
|
vdrive_filename,
|
||||||
local_filename)
|
local_filename)
|
||||||
@ -84,7 +84,7 @@ def put(config, stdout, stderr):
|
|||||||
verbosity = 0
|
verbosity = 0
|
||||||
else:
|
else:
|
||||||
verbosity = 2
|
verbosity = 2
|
||||||
rc = tahoe_put.put(config['server'],
|
rc = tahoe_put.put(config['node-url'],
|
||||||
config['vdrive'],
|
config['vdrive'],
|
||||||
vdrive_filename,
|
vdrive_filename,
|
||||||
local_filename,
|
local_filename,
|
||||||
|
Loading…
Reference in New Issue
Block a user