Add CLI one-time debug logging option

This commit is contained in:
icenine451 2024-10-18 09:40:48 -04:00
parent a5eba709d9
commit e326bfa2f8

View file

@ -26,6 +26,7 @@ Arguments:
-h, --help \t Print this help -h, --help \t Print this help
-v, --version \t Print RetroDECK version -v, --version \t Print RetroDECK version
--info-msg \t Print paths and config informations --info-msg \t Print paths and config informations
--debug \t Enable debug logging for this launch of RetroDECK (This may miss errors very early in the launch process)
--configurator \t Starts the RetroDECK Configurator --configurator \t Starts the RetroDECK Configurator
--compress-one <file> \t Compresses target file to a compatible format --compress-one <file> \t Compresses target file to a compatible format
--compress-all <format> \t Compresses all supported games into a compatible format.\n\t\t\t\t\t\t Available formats are \"chd\", \"zip\", \"rvz\" and \"all\" --compress-all <format> \t Compresses all supported games into a compatible format.\n\t\t\t\t\t\t Available formats are \"chd\", \"zip\", \"rvz\" and \"all\"
@ -60,6 +61,10 @@ https://retrodeck.net
cat $rd_conf cat $rd_conf
exit exit
;; ;;
--debug*)
logging_level="debug"
shift
;;
--compress-one*) --compress-one*)
cli_compress_single_game "$2" cli_compress_single_game "$2"
exit exit