CLI dispatch duplicates the command table and exposes a test hook

Aperta
#166 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start with cli.run, the COMMANDS table, and the top-level parser; trace how dispatch, help, and the root-query compatibility path are handled. Then inspect the catalogs and datasets registry options and the guide. Done means one table drives dispatch and the guide, root-query compatibility warns with a stated removal version, and test-only registry options are hidden from help or replaced by an environment variable.

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

Descrizione

enhancement
  • cli.run dispatches with a hand-written if argv[0] == ... chain that repeats the COMMANDS table, and repeats (prog or "orfdata") after prog is already set. A new command must be added in both places. The top-level parser is built only to print help.
  • Any argument list starting with - falls through to the query parser for compatibility with orfdata --gene .... orfdata --verbose therefore reports an error from orfdata query. A deprecation timeline would let this go.
  • catalogs --registry and datasets --registry load arbitrary registry JSON. They exist for tests, but appear in user help.

Acceptance: one table drives dispatch and the guide. The root-query compatibility path warns, with a stated removal version. The test-only registry options are hidden from help or replaced with an environment variable.

Lingua principale
Python
Stelle
1
Fork
1
Merge medio
10h 11m
PR unite (30g)
51

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 openvax/orfdata

Tutte le issue di openvax/orfdata

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.