首页 > 其他 > 详细

解开获取 aria2c 帮助信息的误区

时间:2020-09-19 00:40:07      阅读:71      评论:0      收藏:0      [点我收藏+]

本来想获取 aria2c 的 proxy 相关帮助信息

aria2c -h|grep proxy

运行结果什么都不显示,明明是有这个设置功能,为什么不显示呢?经查询,原来是这样才可以

aria2c -h#http|grep proxy
                              connection to HTTP/FTP/proxy server. After the
 --http-proxy=PROXY           Use a proxy server for HTTP. To override a
                              previously defined proxy, use "".
                              See also the --all-proxy option.
 --https-proxy=PROXY          Use a proxy server for HTTPS. To override a
                              previously defined proxy, use "".
                              See also the --all-proxy option.
 --all-proxy=PROXY            Use a proxy server for all protocols. To override
                              a previously defined proxy, use "".
                              proxy server for a particular protocol using the
                              --http-proxy, --https-proxy and --ftp-proxy
 --no-proxy=DOMAINS           Specify comma separated hostnames, domains or
                              proxy should not be used.
 --proxy-method=METHOD        Set the method to use in proxy request.
 --http-proxy-user=USER       Set user for --http-proxy.
 --http-proxy-passwd=PASSWD   Set password for --http-proxy.
 --https-proxy-user=USER      Set user for --https-proxy.
 --https-proxy-passwd=PASSWD  Set password for --https-proxy.
 --all-proxy-user=USER        Set user for --all-proxy.
 --all-proxy-passwd=PASSWD    Set password for --all-proxy.

继续研究发现,想获取所有的帮助信息怎么办呢?

aria2c -h#help
Usage: aria2c [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]...
Printing options tagged with ‘#help‘.
See ‘aria2c -h#help‘ to know all available tags.
Options:
 -h, --help[=TAG|KEYWORD]     Print usage and exit.
                              The help messages are classified with tags. A tag
                              starts with "#". For example, type "--help=#http"
                              to get the usage for the options tagged with
                              "#http". If non-tag word is given, print the usage
                              for the options whose name includes that word.

                              Possible Values: #basic, #advanced, #http, #https, #ftp, #metalink, #bittorrent, #cookie,
#hook, #file, #rpc, #checksum, #experimental, #deprecated, #help, #all
                              Default: #basic
                              Tags: #basic, #help

Refer to man page for more information.

原来是这样的,哈哈!

 

解开获取 aria2c 帮助信息的误区

原文:https://www.cnblogs.com/nlsoft/p/13694042.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!