Skip to content

Commit

Permalink
chore(cli): fix typo and avoid exposing internal util
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 12, 2023
1 parent 1a6eaac commit 0c55c9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const main = defineCommand({
type: "string",
description: "Path to TLS key used with HTTPS in PEM format",
},
"kettps.pfx": {
"https.pfx": {
type: "string",
description:
"Path to PKCS#12 (.p12/.pfx) keystore containing a TLS certificate and Key",
Expand Down Expand Up @@ -116,7 +116,7 @@ export const main = defineCommand({
qr: args.qr,
publicURL: args.publicURL,
public: args.public,
https: args.https ? parseHTTPSArgs(args) : false,
https: args.https ? _parseHTTPSArgs(args) : false,
};

console.log(opts);
Expand All @@ -141,9 +141,9 @@ export const main = defineCommand({

export const runMain = () => _runMain(main);

// --- utils ---
// --- internal utils ---

export function parseHTTPSArgs(args: Record<string, any>): HTTPSOptions {
function _parseHTTPSArgs(args: Record<string, any>): HTTPSOptions {
const https: HTTPSOptions = {};

if (args["https.cert"]) {
Expand Down

0 comments on commit 0c55c9c

Please sign in to comment.