35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From 09116bb68bb76c9f6432511f5a0f054a2e3b92e0 Mon Sep 17 00:00:00 2001
|
|
From: caodongxia <315816521@qq.com>
|
|
Date: Tue, 12 Oct 2021 19:47:01 +0800
|
|
Subject: [PATCH] add -h option to scl-command
|
|
|
|
---
|
|
src/scl.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/scl.c b/src/scl.c
|
|
index df8111a..1c7854a 100644
|
|
--- a/src/scl.c
|
|
+++ b/src/scl.c
|
|
@@ -25,7 +25,7 @@ static void print_usage( const char *name ) {
|
|
fprintf(stderr, " %s load|unload [<collection>...]\n", basename(name));
|
|
fprintf(stderr, " %s list-collections\n", basename(name));
|
|
fprintf(stderr, " %s list-packages|man|register|deregister <collection>\n", basename(name));
|
|
- fprintf(stderr, " %s --help\n\n", basename(name));
|
|
+ fprintf(stderr, " %s -h|--help\n\n", basename(name));
|
|
|
|
fprintf(stderr,
|
|
"description:\n"
|
|
@@ -36,7 +36,7 @@ static void print_usage( const char *name ) {
|
|
" list-packages list packages in Software Collection\n"
|
|
" man show manual page about Software Collection\n"
|
|
" register|deregister register/deregister Software Collection\n"
|
|
- " --help show this help\n"
|
|
+ " -h|--help show this help\n"
|
|
"\nUse '-' as <command> to read the command from standard input.\n");
|
|
}
|
|
|
|
--
|
|
2.27.0
|
|
|