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
Nurlan
eepm
Commits
e90c858b
Commit
e90c858b
authored
Apr 15, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add examples to help
parent
05c1066d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
tools_eget
bin/tools_eget
+9
-2
No files found.
bin/tools_eget
View file @
e90c858b
...
...
@@ -120,6 +120,8 @@ set_quiet()
CURLQ
=
'-s'
}
# TODO: parse options in a good way
# TODO: passthrou all wget options
if
[
"
$1
"
=
"-q"
]
;
then
set_quiet
...
...
@@ -247,7 +249,7 @@ fi
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"eget - wget like downloader wrapper with wildcard support in filename part of URL"
echo
"Usage: eget [-q] [-O target file] [--list] http://somesite.ru/dir/na*.log"
echo
"Usage: eget [-q] [-
k] [-U] [-
O target file] [--list] http://somesite.ru/dir/na*.log"
echo
echo
"Options:"
echo
" -q - quiet mode"
...
...
@@ -255,10 +257,15 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
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
" --latest - print only latest version of file"
echo
" --latest - print only latest version of
a
file"
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 --list http://download.somesite.ru 'package-*.tar.xz'"
echo
"
$
eget --list --latest https://github.com/telegramdesktop/tdesktop/releases 'tsetup.*.tar.xz'"
# echo "See $ wget --help for wget options you can use here"
exit
fi
...
...
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