1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 09:50:07 +02:00

Basic completion for init, add --verbose to it

This commit is contained in:
Daniel Martí 2013-11-04 20:28:32 +01:00
parent de0986e77d
commit 145b38252a
2 changed files with 12 additions and 2 deletions

View File

@ -183,10 +183,16 @@ __complete_server() {
__complete_options
}
__complete_init() {
opts="-h -v"
lopts="--help --verbose"
__complete_options
}
_fdroid() {
local cmd cmds aliased
cmd=${COMP_WORDS[1]}
cmds=" build update publish checkupdates import rewritemeta scanner verify stats server "
cmds=" build init update publish checkupdates import rewritemeta scanner verify stats server "
aliased=false
for c in $cmds; do eval "_fdroid_${c} () {

View File

@ -42,9 +42,13 @@ def write_to_config(key, value):
f.writelines(data)
def main():
global options, config
# Parse command line...
global options
parser = OptionParser()
parser.add_option("-v", "--verbose", action="store_true", default=False,
help="Spew out even more information than normal")
(options, args) = parser.parse_args()
# find root install prefix