diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-30 10:09:40 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-30 10:09:40 -0800 |
| commit | 921ad1868886c40e98c2604dff92b2d3990f39b3 (patch) | |
| tree | 0a6c5ff8818347bf6388c4222d176daf70d33824 /src/wikiget/__main__.py | |
| parent | 312ac140fbab0da4e3d32707a3bf8610d92f82c2 (diff) | |
| download | wikiget-921ad1868886c40e98c2604dff92b2d3990f39b3.tar.gz wikiget-921ad1868886c40e98c2604dff92b2d3990f39b3.zip | |
Enable wikiget to be run as a module
Diffstat (limited to 'src/wikiget/__main__.py')
| -rw-r--r-- | src/wikiget/__main__.py | 21 |
1 files changed, 21 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. + +from wikiget.wikiget import cli # no cov + +if __name__ == "__main__": + raise SystemExit(cli()) |
