36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# File 'lib/vim_printer/cli.rb', line 36
def usage
puts "Usage:\n vim_printer\n\nOptions:\n -b, [--base-dir=BASE_DIR] # Base directory\n # Default: . (current directory)\n -e, [--exts=one two three] # List of extension to search for\n # e.g. -e rb md\n -f, [--non-exts=one two three] # List of file without extension to be included in the result (optional)\n # e.g. -f Gemfile LICENSE\n -n, [--inc-words=one two three] # List of word that must be part of the name to be included in the result (optional)\n # If this option is not specified then\n # all files having the extension specified by -e or all file specified by -f will be included\n -x, [--exc-words=one two three] # List of words to be excluded from the result if any (optional)\n # Use this option to filter out files that contain some word in the name\n # e.g. -x '_spec' to exclude files that end with '*_spec.rb' in the name\n -i, [--ignore-case], [--no-ignore-case] # Match case insensitively apply to both -f, n, and -x options (optional)\n # Default: --ignore-case\n -r, [--recursive], [--no-recursive] # Search for files recursively (optional)\n # Default: --recursive\n -v, [--version] # Display version information\n #\n -t, [--theme=THEME] # Vim colorscheme to use (optional)\n # Default: 'default'\n -c, [--index], [--no-index] # Generate the index.html file for the result (optional)\n # Default: --index\n -s, [--command] # Use the input file list from the result of the given shell command\n # Note: the command must return the list of file to be valid\n # This option ignore any of the following options -e, -f, -n, -x, -i if specified\n # e.g. --command 'git diff --name-only HEAD~2 | grep -v test'\n # e.g. --command 'find . -type f -iname \"*.rb\" | grep -v test | grep -v _spec'\nPrint files to (x)html using Vim\n EOS\nend\n"
|