From 365560f9e81df7556d0aa497f6943565316c1e1a Mon Sep 17 00:00:00 2001 From: srz_zumix Date: Wed, 29 Nov 2023 14:04:04 +0900 Subject: [PATCH 1/2] support -h|--help option --- gh-act | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gh-act b/gh-act index 4764636..f49c836 100755 --- a/gh-act +++ b/gh-act @@ -146,7 +146,11 @@ parse_params() { echo "gh-act version ${GH_ACT_VERSION}" CREATE_EVENT_JSON=false ;; - -g| --graph| -h| --help| -l| --list) + -g| --graph| -l| --list) + CREATE_EVENT_JSON=false + ;; + --help| -l) + EVENT_NAME=help CREATE_EVENT_JSON=false ;; -?*) ;; From 118adcbbf8c315a18e7b3d079258b9e11a29dcbd Mon Sep 17 00:00:00 2001 From: srz_zumix Date: Wed, 29 Nov 2023 14:08:35 +0900 Subject: [PATCH 2/2] fix --- gh-act | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gh-act b/gh-act index f49c836..c8a97e4 100755 --- a/gh-act +++ b/gh-act @@ -149,7 +149,7 @@ parse_params() { -g| --graph| -l| --list) CREATE_EVENT_JSON=false ;; - --help| -l) + -h| --help) EVENT_NAME=help CREATE_EVENT_JSON=false ;;