vpm: use only `-v` for verbose output

pull/5265/head
Lukas Neubert 2020-06-07 14:20:56 +02:00 committed by GitHub
parent 70c18fc7b2
commit eec5cf1eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 15 deletions

View File

@ -443,7 +443,7 @@ fn init_settings() {
s = settings
}
s.is_help = '-h' in os.args || '--help' in os.args || 'help' in os.args
s.is_verbose = '-verbose' in os.args || '--verbose' in os.args || '-v' in os.args
s.is_verbose = '-v' in os.args
s.server_urls = cmdline.options(os.args, '-server-url')
s.vmodules_path = os.home_dir() + '.vmodules'
}

View File

@ -2,12 +2,11 @@ Usage:
v install module [module] [module] [...]
^^^^^^^^^^^^^ will install the modules you specified
You can also do `v install` directly if you have dependencies stored
inside the `v.mod` file. This will automatically installs the modules
specified inside of it.
You can also do `v install` directly if you have dependencies stored
inside the `v.mod` file. This will automatically installs the modules
specified inside of it.
Options:
-help - Show usage info.
-verbose - Print more details about the performed operation.
-server-url - When doing network operations, use this vpm server.
Can be given multiple times.
-help - Show usage info.
-v - Print more details about the performed operation.
-server-url - When doing network operations, use this vpm server. Can be given multiple times.

View File

@ -5,5 +5,5 @@ Usage:
^^^^^^^^^^^^ will remove ALL installed modules
Options:
-help - Show usage info.
-verbose - Print more details about the performed operation.
-v - Print more details about the performed operation.
-server-url - When doing network operations, use this vpm server. Can be given multiple times.

View File

@ -3,6 +3,6 @@ Usage:
^^^^^^^^^^^^^^^^^ will search https://vpm.vlang.io/ for matching modules,
and will show details about them
Options:
-help - Show usage info.
-verbose - Print more details about the performed operation.
-server-url - When doing network operations, use this vpm server. Can be given multiple times.
-help - Show usage info.
-v - Print more details about the performed operation.
-server-url - When doing network operations, use this vpm server. Can be given multiple times.

View File

@ -5,5 +5,5 @@ Usage:
^^^^^^^^^^^^ will update ALL installed modules to their latest versions.
Options:
-help - Show usage info.
-verbose - Print more details about the performed operation.
-v - Print more details about the performed operation.
-server-url - When doing network operations, use this vpm server. Can be given multiple times.

View File

@ -10,7 +10,7 @@ import v.util
import v.builder
const (
simple_cmd = [
simple_cmd = [
'fmt', 'up',
'self', 'symlink', 'bin2v',
'test', 'test-fmt', 'test-compiler', 'test-fixed',

View File

@ -33,7 +33,7 @@ pub enum Backend {
}
const (
list_of_flags_with_param = [
list_of_flags_with_param = [
'o'
'output', 'd', 'define', 'b', 'backend', 'cc', 'os', 'target-os', 'arch', 'csource'
'cf', 'cflags', 'path']