Skip to content

Commit f842f9b

Browse files
author
John McCambridge
committed
Add descriptions for flags in the CLI
1 parent 70219d1 commit f842f9b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

packages/server/src/cli.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,22 @@ import { createApp } from "./server";
1515
import { forkModule, requireFork, requireModule } from "./vscode/bootstrapFork";
1616
import { SharedProcess, SharedProcessState } from "./vscode/sharedProcess";
1717
import opn = require("opn");
18+
import { args } from "@oclif/parser";
1819

1920
export class Entry extends Command {
2021
public static description = "Start your own self-hosted browser-accessible VS Code";
2122
public static flags = {
22-
cert: flags.string(),
23-
"cert-key": flags.string(),
24-
"data-dir": flags.string({ char: "d" }),
23+
cert: flags.string({char: "c", description: "Point to an SSL certificate .crt file"}),
24+
"cert-key": flags.string({ char: "k", description: "Point to an SSL certificate .key file"}),
25+
"data-dir": flags.string({ char: "d", default: "Current directory", description: "Specify the working directory for the IDE" }),
2526
help: flags.help(),
2627
host: flags.string({ char: "h", default: "0.0.0.0" }),
2728
open: flags.boolean({ char: "o", description: "Open in browser on startup" }),
2829
port: flags.integer({ char: "p", default: 8443, description: "Port to bind on" }),
2930
version: flags.version({ char: "v" }),
30-
"no-auth": flags.boolean({ default: false }),
31-
"allow-http": flags.boolean({ default: false }),
32-
password: flags.string(),
31+
"no-auth": flags.boolean({ char: "n", default: false, description: "Start code-server without password" }),
32+
"allow-http": flags.boolean({ char: "a", default: false, description: "Allow use of HTTP protocol" }),
33+
password: flags.string( {description: "Specify the IDE password inline"}),
3334

3435
// Dev flags
3536
"bootstrap-fork": flags.string({ hidden: true }),

0 commit comments

Comments
 (0)