Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit 7771922

Browse files
committed
Update usage example with simpler interface
Now all parsed cmd args can be passed directly to methods
1 parent 613b3f4 commit 7771922

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

usage.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pycee.answers import get_so_answers
1+
from pycee.answers import get_answers
22
from pycee.errors import handle_error
33
from pycee.inspection import get_error_info, get_packages
44
from pycee.utils import parse_args, remove_cache, print_answers
@@ -12,13 +12,8 @@ def main():
1212
remove_cache()
1313

1414
error_info = get_error_info(args.file_name)
15-
query, pycee_hint, pydoc_answer = handle_error(error_info, n_questions=args.n_questions, dry_run=args.dry_run)
16-
so_answers, _ = get_so_answers(
17-
query,
18-
error_info,
19-
cache=args.cache,
20-
n_answers=args.n_answers,
21-
)
15+
query, pycee_hint, pydoc_answer = handle_error(error_info, args)
16+
so_answers, _ = get_answers(query, error_info, args)
2217
print_answers(so_answers, pycee_hint, pydoc_answer, args)
2318

2419

0 commit comments

Comments
 (0)