Skip to content

Commit

Permalink
tools: improve the output of v install (#19760)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Nov 4, 2023
1 parent df8863a commit 2ef49b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/tools/vpm/install.v
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn vpm_install(requested_modules []string, opts []string) {
if already_installed.len > 0 {
verbose_println('Already installed modules: ${already_installed}')
if already_installed.len == modules.len {
verbose_println('All modules are already installed.')
println('All modules are already installed.')
exit(0)
}
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/tools/vpm/vpm.v
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ fn main() {
// args are: vpm [options] SUBCOMMAND module names
params := cmdline.only_non_options(os.args[1..])
options := cmdline.only_options(os.args[1..])
verbose_println('cli params: ${params}')
// dump(params)
if params.len < 1 {
help.print_and_exit('vpm', exit_code: 5)
}
vpm_command := params[0]
mut requested_modules := params[1..].clone()
ensure_vmodules_dir_exist()
// println('module names: ') println(requested_modules)
match vpm_command {
'help' {
help.print_and_exit('vpm')
Expand Down

0 comments on commit 2ef49b8

Please sign in to comment.