Skip to content

Commit

Permalink
fix(command): remove doc_folder option for now
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Nov 7, 2023
1 parent 4dbf60b commit 9302698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ ctags: ## Regenerate ctags
--tag-relative=yes \
--exclude=.git \
--exclude=docs \
--exclude=.ruff_cache \
--exclude=.mypy_cache \
--exclude=.pytest_cache \
--python-kinds=-i \
--language-force=python
.PHONY: ctags
4 changes: 1 addition & 3 deletions papis_uefiscdi/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,10 @@ def add_uefiscdi(doc: Document) -> None:
@cli.command("add")
@click.help_option("--help", "-h")
@papis.cli.query_argument()
@papis.cli.doc_folder_option()
@papis.cli.all_option()
@papis.cli.sort_option()
def add(
query: str,
doc_folder: tuple[str, ...],
all_: bool,
sort_field: str | None,
sort_reverse: bool,
Expand All @@ -166,7 +164,7 @@ def add(
from papis.api import save_doc

documents = papis.cli.handle_doc_folder_query_all_sort(
query, doc_folder[0], sort_field, sort_reverse, all_ # type: ignore
query, None, sort_field, sort_reverse, all_
)

for doc in documents:
Expand Down

0 comments on commit 9302698

Please sign in to comment.