Alexander Solovyov avatar Alexander Solovyov committed d4ab2a9

fixed wording

Comments (0)

Files changed (1)

  • +5 -4
    sr
     Build options for parsing language types.
     """
     langs = OptionGroup(parser, "File type options",
-                        "Use this options to select file types you'd like to process. Use --show-types option to output all available file types.")
+                        ("Use this options to select file types you'd like to process.\n"
+                         "Use --help-types option to output all available file types."))
     for ftype in TYPES():
         langs.add_option('--%s' % ftype, dest='types',
                          action='append_const', const=ftype,
     parser.add_option('-n', '--filenames', action='store_true',
                       default=False, help='show only file names (only for search)')
     parser.add_option('-l', '--output-limit', type='int',
-                      help='the maximem length of output line before it will be truncated')
-    parser.add_option('--file-types', action='store_true', default=False,
+                      help='maximum length of output line to not truncate')
+    parser.add_option('--help-types', action='store_true', default=False,
                       help='output available file types')
 
     build_lang_options(parser)
     if not opts.output_limit is None:
         config.output_limit = opts.output_limit
 
-    if opts.file_types:
+    if opts.help_types:
         config.mode = 'file-types'
     else:
         if not opts.search:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.