mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v remove: use correct command name in error when no args are given (#9273)
This commit is contained in:
parent
08da33fa5a
commit
21bbc24c49
@ -109,7 +109,7 @@ fn vpm_search(keywords []string) {
|
||||
exit(0)
|
||||
}
|
||||
if search_keys.len == 0 {
|
||||
println(' v search requires *at least one* keyword')
|
||||
println('´v search´ requires *at least one* keyword.')
|
||||
exit(2)
|
||||
}
|
||||
modules := get_all_modules()
|
||||
@ -162,7 +162,7 @@ fn vpm_install(module_names []string) {
|
||||
exit(0)
|
||||
}
|
||||
if module_names.len == 0 {
|
||||
println(' v install requires *at least one* module name')
|
||||
println('´v install´ requires *at least one* module name.')
|
||||
exit(2)
|
||||
}
|
||||
mut errors := 0
|
||||
@ -313,7 +313,7 @@ fn vpm_remove(module_names []string) {
|
||||
exit(0)
|
||||
}
|
||||
if module_names.len == 0 {
|
||||
println(' v update requires *at least one* module name')
|
||||
println('´v remove´ requires *at least one* module name.')
|
||||
exit(2)
|
||||
}
|
||||
for name in module_names {
|
||||
|
Loading…
Reference in New Issue
Block a user