mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-25 01:06:05 +03:00
[#1438] Add Trace Help Opener
This commit is contained in:
2 files changed
+22
No files matched your search
@@ -125,6 +125,12 @@ def main() -> None: # noqa: C901, CCR001
|
||||
action='store_true'
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--trace-help",
|
||||
help="Open the documentation to view all possible trace-on values",
|
||||
action='store_true'
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'--refresh-all',
|
||||
help='Iterate over all known CMDRs to try and refresh access tokens',
|
||||
@@ -194,6 +200,12 @@ def main() -> None: # noqa: C901, CCR001
|
||||
logger.info(f'marked {d} for TRACE')
|
||||
|
||||
log_locale('Initial Locale')
|
||||
|
||||
if args.trace_help:
|
||||
import webbrowser
|
||||
logger.info("Opening Trace Help Documentation")
|
||||
webbrowser.open("https://github.com/EDCD/EDMarketConnector/blob/main/docs/Available-Traces.md")
|
||||
|
||||
if args.refresh_all:
|
||||
# Attempt to refresh all known CMDRs. This MAY cause additional output if a token is invalid.
|
||||
logger.debug("Refreshing all known CMDRs")
|
||||
|
||||
@@ -127,6 +127,12 @@ if __name__ == '__main__': # noqa: C901
|
||||
action='store_true'
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--trace-help",
|
||||
help="Open the documentation to view all possible trace-on values",
|
||||
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',
|
||||
@@ -232,6 +238,10 @@ if __name__ == '__main__': # noqa: C901
|
||||
logger.setLevel(level_to_set)
|
||||
edmclogger.set_channels_loglevel(level_to_set)
|
||||
|
||||
if args.trace_help:
|
||||
logger.info("Opening Trace Help Documentation")
|
||||
webbrowser.open("https://github.com/EDCD/EDMarketConnector/blob/main/docs/Available-Traces.md")
|
||||
|
||||
if args.force_localserver_for_auth:
|
||||
config.set_auth_force_localserver()
|
||||
|
||||
|
||||
Reference in new issue
Block a user