Skip to content

Commit

Permalink
Changed "help message" parsing to case stament
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Jan 5, 2024
1 parent e8ea866 commit 7d589c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
share/armbian/web/
23 changes: 16 additions & 7 deletions lib/armbian-configng/documents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,22 @@ generate_list_cli() {

# This function is used to generate a help message.
generate_help(){
cat << EOF
Usage: ${filename%.*} [flag][option]
flag options:
-h, Print this help.
-t, Show a TUI fallback read.
--help, Prints Help message of long flag interactive options (WIP)."
help, View advanced no-interface options (CURRENT FOCUS)."

#Usage: ${filename%.*} [flag][option]

cat << EOF
Usage: ${0##*/} [OPTION]...
Available options:
-h, --help Show this help message and exit
-d, --doc Generate documentation
--server Serve and open HTML
--web Generate web
--key Generate keypairs
--run Run a function
--test Check distro
-t Generate read
-j Generate JSON
help View advanced no-interface options (CURRENT FOCUS)."
EOF
}

Expand Down

0 comments on commit 7d589c1

Please sign in to comment.