Inconsistent behaviour between --help and no arguments
まだ誰も着手していません。
評価
調査の方向性
まず、issue にリンクされている PythonSearch の例を使って、引数なしの場合と --help の場合の違いを再現し、その後、各呼び出しにおける CLI のヘルプ生成パスを追跡します。両方のアプローチで、既存のヘルプ出力を失うことなく、インスタンスレベルのコマンドを含む同じクラスオプションが表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 28.2k
- フォーク
- 1.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/python-fire のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
google/python-fire#693 ·
-
Release 0.7.2? オープン
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
google/python-fire#698 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
google/python-fire#672 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
google/python-fire#665 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
google/python-fire#659 · コメント 1 件 ·
google/python-fire の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·