diff --git a/README.md b/README.md index 8bb66d9..5d03ee3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Commands: new Create a new DragonRuby project. register Register a DragonRuby installation. This moves the installation to the $HOME/.drenv directory. global [version] Get or set the global version of DragonRuby. - local Get or set the local version of DragonRuby. + local [version] Get or set the local version of DragonRuby. versions List out all locally installed versions of DragonRuby. help [command] display help for command ``` @@ -71,7 +71,7 @@ This command will create a new DragonRuby project with the specified name. Under the hood, all **drenv** does is copy the contents of the global DragonRuby installation into the new project directory. -### `drenv local ` +### `drenv local [version]` This command will update your current directory's DragonRuby version to the specified version. diff --git a/main.ts b/main.ts index bb984db..14e40f0 100644 --- a/main.ts +++ b/main.ts @@ -25,7 +25,7 @@ const actionRunner = (fn: (...args: any[]) => Promise) => { program .name("drenv") .description("CLI to manage DragonRuby environments.") - .version("0.2.1"); + .version("0.2.2"); program.command("setup") .description("Setup your shell profile to use drenv.") @@ -49,7 +49,7 @@ program.command("global") .action(actionRunner(global)); program.command("local") - .argument("", "Version of DragonRuby to use") + .argument("[version]", "Version of DragonRuby to use") .description("Get or set the local version of DragonRuby.") .action(actionRunner(local));