Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
028f01a3
Commit
028f01a3
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: improve help text
parent
b669a4ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
23 deletions
+29
-23
tools_eget
bin/tools_eget
+29
-23
No files found.
bin/tools_eget
View file @
028f01a3
...
...
@@ -223,28 +223,34 @@ set_quiet()
eget_help
()
{
echo
"eget - wget like downloader wrapper with wildcard support in filename part of URL"
echo
"Usage: eget [-q] [-k] [-U] [-O target file] [--list] http://somesite.ru/dir/na*.log"
echo
echo
"Options:"
echo
" -q - quiet mode"
echo
" -k|--no-check-certificate - skip SSL certificate chain support"
echo
" -U|-A|--user-agent - send browser like UserAgent"
echo
" -O file - download to this file (use filename from server if missed)"
echo
" --list - print files from url with mask"
echo
" --check - check if URL is accessible (returns HTTP 200 OK)"
echo
" --latest - print only latest version of a file"
echo
" --second-latest - print only second to latest version of a file"
echo
" --allow-mirrors - check mirrors if url is not accessible"
echo
echo
"eget supports --list and download for https://github.com/owner/project urls"
echo
echo
"Examples:"
echo
"
$
eget --list http://ftp.somesite.ru/package-*.tar"
echo
"
$
eget http://ftp.somesite.ru/package-*.x64.tar"
echo
"
$
eget --check http://ftp.somesite.ru/test"
echo
"
$
eget --list http://download.somesite.ru 'package-*.tar.xz'"
echo
"
$
eget --list --latest https://github.com/telegramdesktop/tdesktop/releases 'tsetup.*.tar.xz'"
cat
<<
EOF
eget - wget like downloader wrapper with wildcard support in filename part of URL
Usage: eget [options] http://somesite.ru/dir/na*.log
Options:
-q - quiet mode
-k|--no-check-certificate - skip SSL certificate chain support
-U|-A|--user-agent - send browser like UserAgent
-O-|-O - - output downloaded file to stdout
-O file - download to this file
--latest - print only latest version of a file
--second-latest - print only second to latest version of a file
--allow-mirrors - check mirrors if url is not accessible
--list|--list-only - print only URLs
--check URL - check if the URL is accessible (returns HTTP 200 OK)
Examples:
$
eget http://ftp.somesite.ru/package-*.x64.tar
$
eget http://ftp.somesite.ru/package *.tar
$
eget https://github.com/owner/project package*.ext
$
eget --list http://ftp.somesite.ru/package-*.tar
$
eget --check http://ftp.somesite.ru/test
$
eget --list http://download.somesite.ru 'package-*.tar.xz'
$
eget --list --latest https://github.com/telegramdesktop/tdesktop/releases 'tsetup.*.tar.xz'
EOF
}
...
...
@@ -274,7 +280,7 @@ while [ -n "$1" ] ; do
WGETUSERAGENT
=
"-U '
$user_agent
'"
CURLUSERAGENT
=
"-A '
$user_agent
'"
;;
--list
)
--list
|
--list-only
)
LISTONLY
=
"
$1
"
set_quiet
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment