We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2129148 + cbc0519 commit b5e72faCopy full SHA for b5e72fa
pyproject.toml
@@ -8,6 +8,7 @@ build-backend = "setuptools.build_meta"
8
9
[project.scripts]
10
s3daemon = "s3daemon.s3daemon:main"
11
+s3nd = "s3daemon.send:main"
12
13
[tool.setuptools_scm]
14
python/s3daemon/send.py
@@ -50,5 +50,14 @@ def send(filename, dest):
50
sys.exit(1)
51
52
53
-if __name__ == "__main__":
+def main():
54
+ """CLI entry point."""
55
+ if len(sys.argv) != 3:
56
+ print(f"Usage: {sys.argv[0]} filename dest", file=sys.stderr)
57
+ sys.exit(1)
58
+
59
send(sys.argv[1], sys.argv[2])
60
61
62
+if __name__ == "__main__":
63
+ main()
0 commit comments