Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/git/loader.py
Show First 20 Lines • Show All 491 Lines • ▼ Show 20 Lines | |||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
import click | import click | ||||
logging.basicConfig( | logging.basicConfig( | ||||
level=logging.DEBUG, format="%(asctime)s %(process)d %(message)s" | level=logging.DEBUG, format="%(asctime)s %(process)d %(message)s" | ||||
) | ) | ||||
from deprecated import deprecated | |||||
@deprecated(version="1.1", reason="Use `swh loader run git --help` instead") | |||||
@click.command() | @click.command() | ||||
@click.option("--origin-url", help="Origin url", required=True) | @click.option("--origin-url", help="Origin url", required=True) | ||||
@click.option("--base-url", default=None, help="Optional Base url") | @click.option("--base-url", default=None, help="Optional Base url") | ||||
@click.option( | @click.option( | ||||
"--ignore-history/--no-ignore-history", | "--ignore-history/--no-ignore-history", | ||||
help="Ignore the repository history", | help="Ignore the repository history", | ||||
default=False, | default=False, | ||||
) | ) | ||||
Show All 10 Lines |