mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Improve a bit the usage
This commit is contained in:
parent
c341067f83
commit
3c39d9bdf4
@ -66,11 +66,11 @@ DEFAULT_JSDATA = {
|
|||||||
'tablet10_screenshot': None,
|
'tablet10_screenshot': None,
|
||||||
'category': '',
|
'category': '',
|
||||||
'rating': 'everyone',
|
'rating': 'everyone',
|
||||||
'website': "http://kiwix.org",
|
'website': "http://www.kiwix.org",
|
||||||
'email': "kelson@kiwix.org",
|
'email': "contact+android@kiwix.org",
|
||||||
|
|
||||||
# help page content
|
# help page content
|
||||||
'support_email': "kelson@kiwix.org",
|
'support_email': "contact+android@kiwix.org",
|
||||||
}
|
}
|
||||||
|
|
||||||
SIZE_MATRIX = {
|
SIZE_MATRIX = {
|
||||||
@ -586,10 +586,11 @@ def usage(arg0, exit=None):
|
|||||||
if idx > 0 and idx % 3 == 0:
|
if idx > 0 and idx % 3 == 0:
|
||||||
usage_txt += "\n\t\t\t\t\t\t"
|
usage_txt += "\n\t\t\t\t\t\t"
|
||||||
usage_txt += " [--{}]".format(step)
|
usage_txt += " [--{}]".format(step)
|
||||||
|
usage_txt += "\n\t\t\t\t\t\t [--override-<field>=<value>]"
|
||||||
print(usage_txt, '\n')
|
print(usage_txt, '\n')
|
||||||
print("\tjson_file:\t\tmandatory parameter holder (cf. source for sample)")
|
print("\t<json_file>:\t\t\tjson_file path with custom app properties (mandatory)")
|
||||||
print("\t--step:\t\t\trun this step. if none specified, all are run.")
|
print("\t--<step>:\t\t\tRun this step. if none specified, all are run")
|
||||||
print("\t--override-[FIELD]=[VALUE]...-[FIELD]=[VALUE]\tuse for info.json dynamic fields change()\n")
|
print("\t--override-<field>=<value>:\tOverride json_file values (can be use multiple times)\n")
|
||||||
if exit is not None:
|
if exit is not None:
|
||||||
sys.exit(exit)
|
sys.exit(exit)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user