1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: minor array fixes

This commit is contained in:
Alexander Medvednikov
2020-12-20 16:08:56 +01:00
parent 3c210a57f9
commit 50a6976b5e
12 changed files with 357 additions and 417 deletions

View File

@ -50,8 +50,8 @@ fn main() {
init_settings()
// This tool is intended to be launched by the v frontend,
// which provides the path to V inside os.getenv('VEXE')
args := os.args // args are: vpm [options] SUBCOMMAND module names
params := cmdline.only_non_options(args[1..])
// args are: vpm [options] SUBCOMMAND module names
params := cmdline.only_non_options(os.args[1..])
verbose_println('cli params: $params')
if params.len < 1 {
vpm_help()
@ -217,7 +217,7 @@ fn vpm_install(module_names []string) {
}
fn vpm_update(m []string) {
mut module_names := m
mut module_names := m.clone()
if settings.is_help {
vhelp.show_topic('update')
exit(0)

View File

@ -26,8 +26,7 @@ const (
)
fn main() {
args := os.args
args_string := args[1..].join(' ')
args_string := os.args[1..].join(' ')
v_test_formatting(args_string.all_before('test-fmt'))
}