@command(usage='concurrently download tasks in aria2')
@command_line_parser()
@with_parser(parse_login)
@command_line_value('max-concurrent-downloads', alias='j', default=get_config('aria2-j', '5'))
def download_aria2(args):
 aria2_conf = export_aria2_conf(args)
 import platform
 if (platform.system() == 'Windows'):
  download_aria2_temp(aria2_conf, args.max_concurrent_downloads)
 else:
  download_aria2_stdin(aria2_conf, args.max_concurrent_downloads)

@ command ( usage = 'concurrently download tasks in aria2' ) @ command_line_parser ( ) @ with_parser ( parse_login ) @ command_line_value ( 'max-concurrent-downloads' , alias = 'j' , default = get_config ( 'aria2-j' , '5' ) ) def download_aria2 ( args ) : aria2_conf = export_aria2_conf ( args ) import platform if ( platform . system ( ) == 'Windows' ) : download_aria2_temp ( aria2_conf , args . max_concurrent_downloads ) else : download_aria2_stdin ( aria2_conf , args . max_concurrent_downloads )
usage: lx download-aria2 -j 5 [id|name] .