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

Help for -target option should say it's a triple

    XMLWordPrintable

    Details

      Description

      "swift -help" shows the following output for the -target and -target-variant options:

        -target-variant <value> Generate code that may run on a particular variant of the  deployment target
        -target <value>         Generate code for the given target
      

      This text is incredibly vague. At minimum, it should say <triple> instead of <value> to indicate that this is a target triple; it might even make sense to include an example like "x86_64-apple-macos10.9" in the description.

      Command-line options and their help are specified in "include/swift/Option/Options.td". To figure out what you need to change, take a look at how some of the options which have custom names, like -sdk, are specified.

        Attachments

          Activity

            People

            • Assignee:
              rayfix Ray Fix
              Reporter:
              brentdax Brent Royal-Gordon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: