File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ const helptext =
1616 \\ - Path to a directory, under which to override
1717 \\ - "default", to change the default version
1818 \\ - ommited to use the current directory
19- \\ override-rm [DIRECTORY] Override the version of zig used under DIRECTORY. DIRECTORY can be
20- \\ - Path to a directory, under which to remove override
21- \\ - An empty string to remove for the current directory
19+ \\ override-rm <DIRECTORY> Override the version of zig used under DIRECTORY. DIRECTORY should
20+ \\ be path to a directory, for which to remove override
2221 \\ update [VERSION] Update version to its latest available point release, If [VERSION] is
2322 \\ not provided, it will update all installed versions
2423 \\ update-self Update zigverm itself
@@ -111,7 +110,7 @@ pub const Cli = union(enum) {
111110
112111 command = Cli { .override = override_args };
113112 } else if (streql (cmd , "override-rm" )) {
114- const directory = arg_iter .next ();
113+ const directory = arg_iter .next () orelse return incorrectUsage ( null ) ;
115114 command = Cli { .override_rm = directory };
116115 } else incorrectUsage (cmd );
117116
You can’t perform that action at this time.
0 commit comments