Skip to content

Commit

Permalink
Fix 'local' command bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitemaeric committed Oct 17, 2024
1 parent 5da291e commit 2073278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Commands:
new <name> Create a new DragonRuby project.
register <path> Register a DragonRuby installation. This moves the installation to the $HOME/.drenv directory.
global [version] Get or set the global version of DragonRuby.
local <version> 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
```
Expand Down Expand Up @@ -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 <version>`
### `drenv local [version]`

This command will update your current directory's DragonRuby version to the specified version.

Expand Down
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const actionRunner = (fn: (...args: any[]) => Promise<any>) => {
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.")
Expand All @@ -49,7 +49,7 @@ program.command("global")
.action(actionRunner(global));

program.command("local")
.argument("<version>", "Version of DragonRuby to use")
.argument("[version]", "Version of DragonRuby to use")
.description("Get or set the local version of DragonRuby.")
.action(actionRunner(local));

Expand Down

0 comments on commit 2073278

Please sign in to comment.