Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

-h should be a global flag for --help

Đang mở Phù hợp với người mới
#1,641 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu từ điểm vào của CLI và phần xử lý các flag toàn cục, sử dụng hành vi hiện có của --help làm tham chiếu. Kiểm thử fastly -h cùng với fastly --help; được xem là hoàn tất khi flag ngắn hiển thị cùng một văn bản trợ giúp toàn cục mà không xung đột với các subcommand.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature request

Is your feature request related to a problem? Please describe.

It's common and conventional for CLI tools to accept -h as a shortcut for invoking --help globally.

But we don't currently support it:

GLOBAL FLAGS
      --help             Show context-sensitive help.
  -d, --accept-defaults  Accept default options for all interactive prompts
                         apart from Yes/No confirmations
  -y, --auto-yes         Answer yes automatically to all Yes/No confirmations.
                         This may suppress security warnings
      --debug-mode       Print API request and response details (NOTE:
                         can disrupt the normal CLI flow output formatting)
      --enable-sso       Enable Single-Sign On (SSO) for current profile
                         execution (see also: 'fastly sso')
  -i, --non-interactive  Do not prompt for user input - suitable for CI
                         processes. Equivalent to --accept-defaults and
                         --auto-yes
  -o, --profile=PROFILE  Switch account profile for single command execution
                         (see also: 'fastly profile switch')
  -q, --quiet            Silence all output except direct command output.
                         This won't prevent interactive prompts (see:
                         --accept-defaults, --auto-yes, --non-interactive)
  -t, --token=TOKEN      Fastly API token (or via FASTLY_API_TOKEN)
  -v, --verbose          Verbose logging

Perhaps there are -h conflicts with subcommands?

Describe the solution you'd like

I'd like fastly -h to work globally as a shortcut for showing help text.

Describe alternatives you've considered

n/a

Additional context

n/a

Ngôn ngữ chính
Go
Star
164
Fork
80
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fastly/cli

Tất cả issue của fastly/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.