Inconsistent behaviour between --help and no arguments
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia riproducendo la differenza tra l’assenza di argomenti e l’uso di --help con l’esempio PythonSearch collegato nell’issue, quindi traccia i percorsi di generazione dell’help della CLI per ogni invocazione. Il lavoro è completo quando entrambi gli approcci mostrano le stesse opzioni della classe, inclusi i comandi a livello di istanza, senza perdere l’output dell’help esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 28.2k
- Fork
- 1.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google/python-fire
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
google/python-fire#693 ·
-
Release 0.7.2? Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
google/python-fire#698 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
google/python-fire#672 · 5 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
google/python-fire#665 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
google/python-fire#659 · 1 commento ·
Tutte le issue di google/python-fire
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
canonical/paas-charm#368 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
addition to tracking list Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
StevenBlack/hosts#3256 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
qualcomm/qai-appbuilder#275 ·