24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/code_lister/cli.rb', line 24
def usage
puts <<-EOS
Usage:
code_lister
Options:
-b, [--base-dir=BASE_DIR] # Base directory
# Default: . (current directory)
-e, [--exts=one two three] # List of extensions to search for
-f, [--non-exts=one two three] # List of files without extension to search for
-n, [--inc-words=one two three] # List of words in the filename to be included with the result if any
-x, [--exc-words=one two three] # List of words in the filename to be excluded from the result if any
-i, [--ignore-case], [--no-ignore-case] # Ignore the case in the input filename
# Default: --ignore_case
-r, [--recursive], [--no-recursive] # Search for files recursively
# Default: --recursive
-v, [--version], [--no-version] # Display version information
List files by extensions, patterns, and simple criteria
EOS
end
|