Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1421

'sourcekitd-test -help' should print help, list available request types

    XMLWordPrintable

    Details

      Description

      Invoking sourcekitd-test with no arguments emits the following:

      $ sourcekitd-test
      request is not set
      USAGE:  [options]
      
      OPTIONS:
        -help    - Display available options (-help-hidden for more)
        -version - Display the version of this program
      

      However, sourcekitd-test does not actually respond to the -help option:

      $ sourcekitd-test -help
      error: unknown argument: -help
      

      Instead, -help should print out a basic description of the tool, as well as some of the available commands (at least the ones documented in https://github.com/apple/swift/blob/5302e3859ce52322e4a0051e1101399e4f37d25d/tools/SourceKit/docs/Protocol.md).

        Attachments

          Activity

            People

            Assignee:
            felix91gr FĂ©lix Fischer
            Reporter:
            modocache Brian Ivan Gesiak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: