Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Feb 22, 2024
1 parent 50eb414 commit 2b19af7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 12 deletions.
16 changes: 14 additions & 2 deletions bin/c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ Example:
$PROG -q < ~/.ssh/id_rsa.pub
Options:
-k, --keep-eol do not trim new line at end of file
-q, --quiet suppress all normal output, default is false
-k, --keep-eol
-K, --no-keep-eol
keep new line at end of file or not, default is false
-q, --quiet
-Q, --no-quiet
suppress all normal output, default is false
-h, --help display this help and exit
-V, --version display version information and exit
EOF
Expand All @@ -92,10 +96,18 @@ while (($# > 0)); do
keep_eol=true
shift
;;
-K | --no-keep-eol)
keep_eol=false
shift
;;
-q | --quiet)
quiet=true
shift
;;
-Q | --no-quiet)
quiet=false
shift
;;
-h | --help)
usage
;;
Expand Down
7 changes: 6 additions & 1 deletion bin/cp-into-docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ docker options:
optional, default is under tmp dir and deleted when run finished
run options:
-v, --verbose show operation step infos
-v, --verbose
--no-verbose show operation step infos, default is false
miscellaneous:
-h, --help display this help and exit
Expand Down Expand Up @@ -140,6 +141,10 @@ while (($# > 0)); do
verbose=true
shift
;;
--no-verbose)
verbose=true
shift
;;
-h | --help)
usage
;;
Expand Down
42 changes: 33 additions & 9 deletions bin/find-in-jars
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,25 @@ Find control:
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression
-P, --perl-regexp PATTERN is a Perl regular expression
-i, --ignore-case ignore case distinctions
-i, --ignore-case
--no-ignore-case ignore case distinctions or not.
default is false.
Output control:
-a, --absolute-path always print absolute path of jar file
-a, --absolute-path
--no-absolute-path always print absolute path of jar file.
default is false.
-s, --separator specify the separator between jar file and zip entry.
default is \`!'.
-L, --files-not-contained-found
print only names of JAR FILEs NOT contained found
-l, --files-contained-found
print only names of JAR FILEs contained found
-R, --no-find-progress do not display responsive find progress
print only names of JAR FILEs contained found.
-L, --files-not-contained-found
print only names of JAR FILEs NOT contained found.
--print-entries print the entries contained found. this is
default behavior, changed by above options -l/-L.
-R, --no-find-progress
--find-progress display responsive find progress or not.
default is true.
Miscellaneous:
-h, --help display this help and exit
Expand Down Expand Up @@ -188,29 +196,45 @@ while (($# > 0)); do
ignore_case_option=-i
shift
;;
--no-ignore-case)
ignore_case_option=
shift
;;
-a | --absolute-path)
use_absolute_path=true
shift
;;
--no-absolute-path)
use_absolute_path=false
shift
;;
# support the legacy typo option name --seperator for compatibility
-s | --separator | --seperator)
separator=$2
shift 2
;;
-l | --files-contained-found)
only_print_file_name=true
print_matched_files=true
shift
;;
-L | --files-not-contained-found)
only_print_file_name=true
print_matched_files=false
shift
;;
-l | --files-contained-found)
only_print_file_name=true
print_matched_files=true
--print-entries)
only_print_file_name=false
shift
;;
-R | --no-find-progress)
show_responsive=false
shift
;;
--find-progress)
show_responsive=true
shift
;;
-h | --help)
usage
;;
Expand Down

0 comments on commit 2b19af7

Please sign in to comment.