Improve help formatting

This commit is contained in:
Joseph Garrone
2024-05-18 10:53:14 +02:00
parent 49bb276c78
commit eba4ddbbd8

View File

@ -7,7 +7,7 @@ export type CliCommandOptions = {
reactAppRootDirPath: string | undefined; reactAppRootDirPath: string | undefined;
}; };
const program = termost<CliCommandOptions>("Keycloak theme builder"); const program = termost<CliCommandOptions>("Keycloakify CLI");
const optionsKeys: string[] = []; const optionsKeys: string[] = [];
@ -21,7 +21,11 @@ program.option({
return { long, short }; return { long, short };
})(), })(),
"description": "https://docs.keycloakify.dev/build-options#project-or-p-cli-option", "description": [
`For monorepos, path to the keycloakify project.`,
"Example: `npx keycloakify build --project packages/keycloak-theme`",
"https://docs.keycloakify.dev/build-options#project-or-p-cli-option"
].join(" "),
"defaultValue": undefined "defaultValue": undefined
}); });