From a1c6681c03f2090d6ed8143c9ff1388e51d48bb0 Mon Sep 17 00:00:00 2001 From: Vaclav Blazek Date: Fri, 23 Oct 2020 16:30:52 +0200 Subject: [PATCH] setup-resource: udpated --linkDataset --- mapproxy/src/setup-resource/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mapproxy/src/setup-resource/main.cpp b/mapproxy/src/setup-resource/main.cpp index fc0e3c4..09009d4 100644 --- a/mapproxy/src/setup-resource/main.cpp +++ b/mapproxy/src/setup-resource/main.cpp @@ -80,8 +80,8 @@ UTILITY_GENERATE_ENUM_CI(ResourceType, ) UTILITY_GENERATE_ENUM(DatasetLink, - ((nolink)) - ((absolute)) + ((nolink)("nolink")("0")("false")) + ((absolute)("absolute")("1")("true")) ((relative)) ) @@ -155,7 +155,9 @@ void SetupResource::configuration(po::options_description &cmdline (&linkDataset_, DatasetLink::absolute) ->default_value(DatasetLink::nolink) , "Link dataset instead of copying. NB: dataset must stay at given " - "path while resource is used.") + "path while resource is used. Can be used as a boolean or value " + "(nolink=false, absolute=true, relative). Relative link creates " + "link relative to resource dataset directory.") ("resourceType", po::value() , "Resource type: TMS or TIN.")