termux-api-package icon indicating copy to clipboard operation
termux-api-package copied to clipboard

Enhance help and option handling

Open EmilyGraceSeville7cf opened this issue 4 months ago • 0 comments

Changes

  • Use double quotes for show_usage function: termux-battery-status.in
  • Colorize show_usage text: termux-battery-status.in
  • Provide valid options when unknown is passed: termux-battery-status.in
  • Specify script type for ShellCheck to get rid of its complaints: all scripts

Questions

  • I wonder if it's desirable to color help messages or not.
  • Maybe it's a good idea to use gum instead of raw escape sequences for colors, isn't it? But in this case it's required (from my understanding) to preinstall gum too.

EmilyGraceSeville7cf avatar Sep 29 '24 16:09 EmilyGraceSeville7cf