v.util.vflags #
Copyright (c) 2019-2024 Delyan Angelov. All rights reserved. Use of this source code is governed by an MIT license that can be found in the LICENSE file.
fn join_env_vflags_and_os_args #
fn join_env_vflags_and_os_args() []string
join_env_vflags_and_os_args returns all the arguments (the ones from the env variable VFLAGS too), passed on the command line.
fn tokenize_to_args #
fn tokenize_to_args(s string) []string
tokenize_to_args converts the input s, into an array of arguments. The arguments are separated by one or more spaces in the input s. The separating spaces are ignored. It supports quoted arguments, where "several little words" for example, will become a single argument in the output. The quotes can be single or double ones. Adjacent quoted and unquoted parts form one argument. Only unquoted whitespace separates arguments; an entirely empty quoted argument is retained.