Skip to content

Commit

Permalink
command line args
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaddow committed Jan 26, 2024
1 parent 8d5c4a2 commit ca3002a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions opuscleaner/download.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Various mtdata dataset downloading utilities"""
import argparse
import os
import sys
import asyncio
Expand Down Expand Up @@ -355,3 +356,9 @@ def cancel_download(dataset_id:int) -> EntryDownloadView:
entry = download.entry,
state = download.state
)


def main():
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--directory", help="Directory to search for categories.json files")
args = parser.parse_args()
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ opuscleaner-clean = "opuscleaner.clean:main"
opuscleaner-col = "opuscleaner.col:main"
opuscleaner-threshold = "opuscleaner.threshold:main"
opuscleaner-sample = "opuscleaner.sample:main"
opuscleaner-download = "opuscleaner.download:main"

[project.urls]
Documentation = "https://github.com/hplt-project/opuscleaner#readme"
Expand Down

0 comments on commit ca3002a

Please sign in to comment.