mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-11 04:42:23 +03:00
CL args: Group them in-code
This commit is contained in:
parent
14ca94c600
commit
e6e1cbd221
@ -70,6 +70,28 @@ if __name__ == '__main__': # noqa: C901
|
|||||||
"such as EDSM, Inara.cz and EDDB."
|
"such as EDSM, Inara.cz and EDDB."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Permanent config changes
|
||||||
|
###########################################################################
|
||||||
|
parser.add_argument(
|
||||||
|
'--reset-ui',
|
||||||
|
help='reset UI theme and transparency to defaults',
|
||||||
|
action='store_true'
|
||||||
|
)
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# User 'utility' args
|
||||||
|
###########################################################################
|
||||||
|
parser.add_argument('--suppress-dupe-process-popup',
|
||||||
|
help='Suppress the popup from when the application detects another instance already running',
|
||||||
|
action='store_true'
|
||||||
|
)
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Adjust logging
|
||||||
|
###########################################################################
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--trace',
|
'--trace',
|
||||||
help='Set the Debug logging loglevel to TRACE',
|
help='Set the Debug logging loglevel to TRACE',
|
||||||
@ -89,28 +111,21 @@ if __name__ == '__main__': # noqa: C901
|
|||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--reset-ui',
|
'--debug-sender',
|
||||||
help='reset UI theme and transparency to defaults',
|
help='Mark the selected sender as in debug mode. This generally results in data being written to disk',
|
||||||
action='store_true'
|
action='append',
|
||||||
)
|
)
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Frontier Auth
|
||||||
|
###########################################################################
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--forget-frontier-auth',
|
'--forget-frontier-auth',
|
||||||
help='resets all authentication tokens',
|
help='resets all authentication tokens',
|
||||||
action='store_true'
|
action='store_true'
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument('--suppress-dupe-process-popup',
|
|
||||||
help='Suppress the popup from when the application detects another instance already running',
|
|
||||||
action='store_true'
|
|
||||||
)
|
|
||||||
|
|
||||||
parser.add_argument(
|
|
||||||
'--debug-sender',
|
|
||||||
help='Mark the selected sender as in debug mode. This generally results in data being written to disk',
|
|
||||||
action='append',
|
|
||||||
)
|
|
||||||
|
|
||||||
auth_options = parser.add_mutually_exclusive_group(required=False)
|
auth_options = parser.add_mutually_exclusive_group(required=False)
|
||||||
auth_options.add_argument('--force-localserver-for-auth',
|
auth_options.add_argument('--force-localserver-for-auth',
|
||||||
help='Force EDMC to use a localhost webserver for Frontier Auth callback',
|
help='Force EDMC to use a localhost webserver for Frontier Auth callback',
|
||||||
@ -126,12 +141,17 @@ if __name__ == '__main__': # noqa: C901
|
|||||||
help='Callback from Frontier Auth',
|
help='Callback from Frontier Auth',
|
||||||
nargs='*'
|
nargs='*'
|
||||||
)
|
)
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Developer 'utility' args
|
||||||
|
###########################################################################
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--capi-pretend-down',
|
'--capi-pretend-down',
|
||||||
help='Force to raise ServerError on any CAPI query',
|
help='Force to raise ServerError on any CAPI query',
|
||||||
action='store_true'
|
action='store_true'
|
||||||
)
|
)
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user