Inconsistent behaviour between --help and no arguments
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Comece reproduzindo a diferença entre não fornecer argumentos e usar --help com o exemplo de PythonSearch vinculado na issue; em seguida, rastreie os caminhos de geração de ajuda da CLI para cada invocação. O trabalho estará concluído quando ambas as abordagens exibirem as mesmas opções de classe, incluindo comandos em nível de instância, sem perder a saída de ajuda existente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Python
- Estrelas
- 28.2k
- Forks
- 1.5k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de google/python-fire
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
google/python-fire#693 ·
-
Release 0.7.2? Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 38/100
google/python-fire#698 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
google/python-fire#672 · 5 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
google/python-fire#665 · 2 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
google/python-fire#659 · 1 comentário ·
Todas as issues de google/python-fire
Issues semelhantes
-
bug confirmed issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
open-webui/open-webui#30750 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100