Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

FR: Exception that when raised prints the task usage (print_task_help)

Aperta
#857 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start by tracing where CLI arguments are parsed and validated and where print_task_help is defined or called. Determine how a task-raised exception should trigger usage output, then verify the behavior for invalid arguments detected during task execution.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature Needs patch

It's a common pattern in CLI tools to print the help/usage if the arguments given are inconsistent or not valid.

This is something that can only be detected during the execution when the arguments are parsed and validated.

It would be useful to have a way to trigger the print_task_help function from the task itself (eg: by raising a specific exception) when that happens.

Lingua principale
Python
Stelle
4.8k
Fork
412
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pyinvoke/invoke

Tutte le issue di pyinvoke/invoke

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.