Inconsistent behaviour between --help and no arguments
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự khác biệt giữa việc không truyền đối số và việc dùng --help với ví dụ PythonSearch được liên kết trong issue, sau đó lần theo các đường dẫn tạo trợ giúp của CLI cho từng lần gọi. Hoàn thành khi cả hai cách tiếp cận đều hiển thị các tùy chọn lớp giống nhau, bao gồm các lệnh cấp instance, mà không làm mất đầu ra trợ giúp hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm a big fan of Python Fire, it's been a huge help in building my projects. I have a small improvement request: I noticed that when I don't pass any arguments to my Fire program, I get an overview of all options of my class. However, when I pass --help, it only describes the class-level functions and misses out the instance-level ones.
I would love to see consistent behavior between the two approaches, ideally it should print all options of the class in both cases.
Thank you for your time!
Example of a personal project.
$ python_search
NAME
python_search - Welcome to PythonSearch, An open-source assistant that helps you collect, retrieve and refactor information (and programs) efficiently using Python
SYNOPSIS
python_search - GROUP | COMMAND
DESCRIPTION
Welcome to PythonSearch, An open-source assistant that helps you collect, retrieve and refactor information (and programs) efficiently using Python
GROUPS
GROUP is one of the following:
configuration
The main _configuration of Python Search Everything to customize about the application is configurable via code through this class
COMMANDS
COMMAND is one of the following:
configure_shortcuts
Generate shortcuts for the current configuration
install_missing_dependencies
Install all missing dependencies that cannot be provided through the default installer
new_project
Create a new project in the current directory with the given name
register_new_ui
Starts the UI for collecting a new entry into python search
run_key
Runs an entry given its name or its partial name.
search
Opens the Search UI. Main entrypoint of the application
set_project_location
If you have a python search project already you can specify its location with this command
And with the --help with less content
$ python_search --help
NAME
python_search - Welcome to PythonSearch, An open-source assistant that helps you collect, retrieve and refactor information (and programs) efficiently using Python
SYNOPSIS
python_search COMMAND | <flags>
DESCRIPTION
Welcome to PythonSearch, An open-source assistant that helps you collect, retrieve and refactor information (and programs) efficiently using Python
FLAGS
--configuration=CONFIGURATION
Type: Optional[Optional]
Default: None
COMMANDS
COMMAND is one of the following:
install_missing_dependencies
Install all missing dependencies that cannot be provided through the default installer
new_project
Create a new project in the current directory with the given name
set_project_location
If you have a python search project already you can specify its location with this command
- Ngôn ngữ chính
- Python
- Star
- 28.2k
- Fork
- 1.5k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/python-fire
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
google/python-fire#693 ·
-
Release 0.7.2? Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
google/python-fire#698 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
google/python-fire#672 · 5 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
google/python-fire#665 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
google/python-fire#659 · 1 bình luận ·
Tất cả issue của google/python-fire
Issue tương tự
-
Add: hunch Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DiamondLightSource/dodal#2211 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openml/openml-python#1749 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sipyourdrink-ltd/bernstein#6191 ·