From aa5c2e86b6d9ea4a1f4f6eeba9cd946c90c000cf Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 13 Aug 2026 14:28:36 +0800 Subject: [PATCH] feat(riot): better help and fix option quite->quiet --- scripts/riot | 114 ++++++++++++++++++++++++++++++++++++------ tools/common.sh | 2 +- tools/test-getopts.sh | 8 +-- 3 files changed, 103 insertions(+), 21 deletions(-) diff --git a/scripts/riot b/scripts/riot index 0fb21e6..6e633c0 100755 --- a/scripts/riot +++ b/scripts/riot @@ -427,21 +427,103 @@ remove_hostkey() { # main print_help() { - fmt_info "usage: $0 [-Ddghlqt] [--dry-run] [--dev] [--gpg] [--help] [--lite] [--quite] [--trust] [--tmux] [--password] [[-o ssh-option]...] remote [command] [--] [command-args]" - cat < /dev/null 2>&1; then + pager=(less -R) + fi + + cat <