Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-2025] "swift build" usage text should specify defaults #5249

Closed
modocache mannequin opened this issue Jul 8, 2016 · 2 comments
Closed

[SR-2025] "swift build" usage text should specify defaults #5249

modocache mannequin opened this issue Jul 8, 2016 · 2 comments

Comments

@modocache
Copy link
Mannequin

modocache mannequin commented Jul 8, 2016

Previous ID SR-2025
Radar None
Original Reporter @modocache
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Improvement, StarterBug
Assignee czechboy0 (JIRA)
Priority Medium

md5: e23a6d16db5a9614574682308f22c7b9

Issue Description:

Kudos on the very helpful help text for "swift build":

$ swift-build --help
OVERVIEW: Build sources into binary products

USAGE: swift build [mode] [options]

MODES:
  -c, --configuration <value>   Build with configuration (debug|release)
  --clean <mode>                Delete artifacts (build|dist)

OPTIONS:
  -C, --chdir <path>       Change working directory before any other operation
  --build-path <path>      Specify build directory
  --color <mode>           Specify color mode (auto|always|never)
  -v, --verbose            Increase verbosity of informational output
  -Xcc <flag>              Pass flag through to all C compiler invocations
  -Xlinker <flag>          Pass flag through to all linker invocations
  -Xswiftc <flag>          Pass flag through to all Swift compiler invocations

NOTE: Use `swift package` to perform other functions on packages

I feel this can be improved by specifying what the defaults are for some of these options. For example, the default path for build-path is the current directory. The default configuration is debug.

/cc @aciidb0mb3r, @abertelrud

@aciidgh
Copy link
Member

aciidgh commented Jul 8, 2016

I agree, specifying default options will be nice.

@swift-ci
Copy link
Contributor

Comment by Honza Dvorsky (JIRA)

PR: #541

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants