From c6188975d2da6c1696c4433f6fce8ae4c9a6ac38 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Apr 2023 08:15:20 -0300 Subject: bin/: Make help string more consistent across several executables --- bin/open | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin/open') diff --git a/bin/open b/bin/open index a57e13e..4dc56db 100755 --- a/bin/open +++ b/bin/open @@ -12,19 +12,30 @@ usage() { help() { cat <<-'EOF' + Options: -h, --help show this message + FILE path to file to be opened + + + Wrapper for xdg-open(1). + + Examples: Open an HTML file on the current $BROWSER: + $ open index.html + Open multiple PDF files (with zathura): + $ open *.pdf EOF } + for flag in "$@"; do case "$flag" in --) -- cgit v1.2.3