Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion beangulp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _extract(


@click.command("archive")
@click.argument("src", nargs=-1, type=click.Path(exists=True, resolve_path=True))
@click.argument("src", nargs=-1, type=click.Path(exists=True, resolve_path=True), default=None)
@click.option(
"--destination",
"-o",
Expand Down Expand Up @@ -196,6 +196,9 @@ def _archive(
errors = exceptions.ExceptionsTrap(log)
renames = []

if src is None:
log("No source files specified!")

for filename in _walk(src, log):
with errors:
importer = identify.identify(ctx.importers, filename)
Expand Down
Loading