mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-16 19:30:09 +02:00
Basic completion for init, add --verbose to it
This commit is contained in:
parent
de0986e77d
commit
145b38252a
@ -183,10 +183,16 @@ __complete_server() {
|
|||||||
__complete_options
|
__complete_options
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__complete_init() {
|
||||||
|
opts="-h -v"
|
||||||
|
lopts="--help --verbose"
|
||||||
|
__complete_options
|
||||||
|
}
|
||||||
|
|
||||||
_fdroid() {
|
_fdroid() {
|
||||||
local cmd cmds aliased
|
local cmd cmds aliased
|
||||||
cmd=${COMP_WORDS[1]}
|
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
|
aliased=false
|
||||||
|
|
||||||
for c in $cmds; do eval "_fdroid_${c} () {
|
for c in $cmds; do eval "_fdroid_${c} () {
|
||||||
|
@ -42,9 +42,13 @@ def write_to_config(key, value):
|
|||||||
f.writelines(data)
|
f.writelines(data)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
global options, config
|
||||||
|
|
||||||
# Parse command line...
|
# Parse command line...
|
||||||
global options
|
|
||||||
parser = OptionParser()
|
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()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
# find root install prefix
|
# find root install prefix
|
||||||
|
Loading…
Reference in New Issue
Block a user