From 921ad1868886c40e98c2604dff92b2d3990f39b3 Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Thu, 30 Nov 2023 10:09:40 -0800 Subject: Enable wikiget to be run as a module --- src/wikiget/__main__.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/wikiget/__main__.py diff --git a/src/wikiget/__main__.py b/src/wikiget/__main__.py new file mode 100644 index 0000000..0e61c36 --- /dev/null +++ b/src/wikiget/__main__.py @@ -0,0 +1,21 @@ +# wikiget - CLI tool for downloading files from Wikimedia sites +# Copyright (C) 2023 Cody Logan and contributors +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Wikiget is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Wikiget is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Wikiget. If not, see . + +from wikiget.wikiget import cli # no cov + +if __name__ == "__main__": + raise SystemExit(cli()) -- cgit v1.2.3