summaryrefslogtreecommitdiffstats
path: root/gallery_dl/option.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/option.py')
-rw-r--r--gallery_dl/option.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py
index 72a602f..12622d0 100644
--- a/gallery_dl/option.py
+++ b/gallery_dl/option.py
@@ -173,6 +173,28 @@ def build_parser():
action="version", version=version.__version__,
help="Print program version and exit",
)
+ if util.EXECUTABLE:
+ general.add_argument(
+ "-U", "--update",
+ dest="update", action="store_const", const="latest",
+ help="Update to the latest version",
+ )
+ general.add_argument(
+ "--update-to",
+ dest="update", metavar="[CHANNEL@]TAG",
+ help="Upgrade/downgrade to a specific version",
+ )
+ general.add_argument(
+ "--update-check",
+ dest="update", action="store_const", const="check",
+ help="Check if a newer version is available",
+ )
+ else:
+ general.add_argument(
+ "-U", "--update-check",
+ dest="update", action="store_const", const="check",
+ help="Check if a newer version is available",
+ )
general.add_argument(
"-f", "--filename",
dest="filename", metavar="FORMAT",
@@ -250,6 +272,12 @@ def build_parser():
help="Activate quiet mode",
)
output.add_argument(
+ "-w", "--warning",
+ dest="loglevel",
+ action="store_const", const=logging.WARNING,
+ help="Print only warnings and errors",
+ )
+ output.add_argument(
"-v", "--verbose",
dest="loglevel",
action="store_const", const=logging.DEBUG,
@@ -319,6 +347,11 @@ def build_parser():
help=("Write downloaded intermediary pages to files "
"in the current directory to debug problems"),
)
+ output.add_argument(
+ "--no-colors",
+ dest="colors", action="store_false",
+ help=("Do not emit ANSI color codes in output"),
+ )
downloader = parser.add_argument_group("Downloader Options")
downloader.add_argument(