Command parameter aliases like -l or -n arenot supported

Aperta
#1,381 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
cli

Direzione di ricerca

The payload names no files, so start by locating the argument-parsing layer of the extension-based command engine (the part that maps tokens like -n or --name onto command parameters) and the definition of the group create command used in the report. Read how long-form options are declared there before adding a short-form alias, then reproduce with azure group create -n rg-mygrup -l westeurope. Done means -n resolves to --name and -l to --location for that command, with existing long-form usage unchanged.

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

Descrizione

act-codegen-extensibility-squad act-quality-productivity-squad
Affected surface

CLI (az)

Describe the bug

Command/Script: azure group create -n rg-mygrup -l westeurope
it does not work because aliases are not supported, we have to specify --name and ``--location`. That's more unecessary characters to type and existing scripts will break.

Steps to reproduce
  1. Run azure group create -n rg-mygrup -l westeurope
Errors & debug output

Expected behavior

Aliases that were commonly used in azure cli should be supported with azclips

Environment

Additional context

No response

Lingua principale
C#
Stelle
18
Fork
10
Merge medio
1g 20h
PR unite (30g)
157

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 Azure/azclips

Tutte le issue di Azure/azclips

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.