mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
arch: automatically optimizing arch packages compilation | aria2c stdout sleep
This commit is contained in:
@@ -36,7 +36,7 @@ def read() -> Namespace:
|
||||
parser.add_argument('-md', '--max-displayed', action="store", default=os.getenv('BAUH_MAX_DISPLAYED', 50), type=int, help='Maximum number of displayed packages in the management panel table. Default: %(default)s')
|
||||
parser.add_argument('--logs', action="store", default=int(os.getenv('BAUH_LOGS', 0)), choices=[0, 1], type=int, help='If the application logs should be displayed. Default: %(default)s')
|
||||
parser.add_argument('--show-panel', action="store_true", help='Shows the management panel after the app icon is attached to the tray.')
|
||||
parser.add_argument('-dm', '--download-mthread', action="store", default=os.getenv('BAUH_DOWNLOAD_MULTITHREAD', 1), choices=[0, 1], type=int, help='If installation files should be downloaded using multi-threads (only possible if axel is installed). Default: %(default)s')
|
||||
parser.add_argument('-dmt', '--download-mthread', action="store", default=os.getenv('BAUH_DOWNLOAD_MULTITHREAD', 1), choices=[0, 1], type=int, help='If installation files should be downloaded using multi-threads (only possible if aria2c is installed). Not all gems support this feature. Check README.md. Default: %(default)s')
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ def validate(args: Namespace, logger: logging.Logger):
|
||||
if args.logs == 1:
|
||||
logger.info("Logs are enabled")
|
||||
|
||||
if args.download_mthread == 0:
|
||||
logger.info("Multithreaded downloads disabled")
|
||||
if args.download_mthread == 1:
|
||||
logger.info("Multi-threaded downloads enabled")
|
||||
|
||||
return args
|
||||
|
||||
Reference in New Issue
Block a user