-h should be a global flag for --help
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
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fastly/cli
-
bug feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fastly/cli#1709 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
fastly/cli#1790 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
fastly/cli#1789 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
fastly/cli#1734 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
agent-butler-finding chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
jordansmall/spindrift#5575 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
open-telemetry/opentelemetry-go-compile-instrumentation#1512 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JakeChampion/lang#12684 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
goose sub-agent runs are never indexed: blame finds no session for any file a `delegate` child wroteĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
C-bug O-community X-blathers-triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cockroachdb/cockroach#176150 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 12 ngày