diff --git a/tools/Propulsion.Tool/Sync.fs b/tools/Propulsion.Tool/Sync.fs index 2c112d0b..5d5a2224 100644 --- a/tools/Propulsion.Tool/Sync.fs +++ b/tools/Propulsion.Tool/Sync.fs @@ -117,7 +117,9 @@ and [] CosmosParameters = | [] From of ParseResults interface IArgParserTemplate with member a.Usage = a |> function - | Connection _ -> "specify a connection string for the destination Cosmos account. Default (if Cosmos): Same as Source" + | Connection _ -> $"""specify a connection string for the destination Cosmos account + Default (From Cosmos): Same as Source. + Default (From Json): optional if environment variable {Args.Configuration.Cosmos.CONNECTION} specified""" | Database _ -> "specify a database name for store. Default (if Cosmos): Same as Source" | Container _ -> "specify a container name for store." | LeaseContainerId _ -> "store leases in Sync target DB (default: use `-aux` adjacent to the Source Container). Enables the Source to be read via a ReadOnly connection string." @@ -130,7 +132,7 @@ and CosmosArguments(c: Args.Configuration, p: ParseResults) = let source = SourceArguments(c, p.GetResult CosmosParameters.From) let connection = match source.Store with | Cosmos c -> p.GetResult(Connection, fun () -> c.Connection) - | Json _ -> p.GetResult Connection + | Json _ -> p.GetResult(Connection, fun () -> c.CosmosConnection) | x -> p.Raise $"unexpected subcommand %A{x}" let connector = let timeout = p.GetResult(Timeout, 5) |> TimeSpan.seconds