diff --git a/cli/src/index.ts b/cli/src/index.ts index 882961b..5e44b7d 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -13,13 +13,12 @@ const args = yargs(Deno.args) yargs .option("get", { alias: "g", - description: "Get a value for a given key: `:``", + description: "Get a value for a given key: ` `", string: true, }) .option("delete", { alias: "d", - description: - "Deletes a value for a given key: `:``", + description: "Deletes a value for a given key: ` `", string: true, })) .command( diff --git a/cli/src/keyManipulation.ts b/cli/src/keyManipulation.ts index ee89850..7884ba5 100644 --- a/cli/src/keyManipulation.ts +++ b/cli/src/keyManipulation.ts @@ -2,7 +2,7 @@ import { callServer } from "./rpc.ts"; import { inputToCacheKey } from "../../client/src/index.ts"; const parseCacheIdAndKey = (hashKey: (...xs: any[]) => string, x: string) => { - const [cacheId, key] = x.split(":"); + const [cacheId, key] = x.split(" "); return { cacheId, key: hashKey(...JSON.parse(key)) }; }; const actOnKey = (action: string) => (args: string) => (secret: string) =>