-
Notifications
You must be signed in to change notification settings - Fork 340
Comparing changes
Open a pull request
base repository: apple/swift-argument-parser
base: 1.2.3
head repository: apple/swift-argument-parser
compare: 1.3.0
- 16 commits
- 61 files changed
- 9 contributors
Commits on Oct 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 753aed3 - Browse repository at this point
Copy the full SHA 753aed3View commit details
Commits on Oct 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b7f5d8c - Browse repository at this point
Copy the full SHA b7f5d8cView commit details
Commits on Nov 5, 2023
-
Don't remove nested option group titles (#592)
When option groups are nested, any titles of the nested groups are removed, even when the containing group doesn't have a title. This change preserves the nested groups' titles when grouped in an untitled option group. Nesting within a titled option group continues to override any nested option groups. Fixes #585.
Configuration menu - View commit details
-
Copy full SHA for c5967d4 - Browse repository at this point
Copy the full SHA c5967d4View commit details
Commits on Nov 7, 2023
-
Rename allValues to allValueStrings (#593)
Renames an internal property of argument parser to simplify tracking values through the code base. Should have no functional changes.
Configuration menu - View commit details
-
Copy full SHA for e2dd9ed - Browse repository at this point
Copy the full SHA e2dd9edView commit details -
Fix crash in string diff printer (#595)
Updates string diff printer to fix an OOB indexing bug.
Configuration menu - View commit details
-
Copy full SHA for 6387339 - Browse repository at this point
Copy the full SHA 6387339View commit details
Commits on Nov 14, 2023
-
[Bash completion]: Respects .file() extensions, uses _filedir (#590)
Bash completion scripts: Respects the `extensions` array for `CompletionKind.file()` and uses `_filedir` when available for `.file` and `.directory`.
Configuration menu - View commit details
-
Copy full SHA for ecac862 - Browse repository at this point
Copy the full SHA ecac862View commit details -
Display possible option values in help (#594)
Updates HelpGenerator to print possible value options as a suffix to the user defined help string. In practice this looks like: > Set diagnostic level to report public declarations without an > availability attribute. (values: error, warn, ignore; default: warn)
Configuration menu - View commit details
-
Copy full SHA for 75dae3d - Browse repository at this point
Copy the full SHA 75dae3dView commit details
Commits on Nov 15, 2023
-
Respect the COLUMNS and LINES environment variables when present (#596)
* Respect the `COLUMNS` and `LINES` environment variables, if set, when determining screen size. * Add test for COLUMNS environment override * Make columns test idempotent against there being a COLUMNS value already set in the environment * Make help tests be more explicit about screen widths.
Configuration menu - View commit details
-
Copy full SHA for c10af98 - Browse repository at this point
Copy the full SHA c10af98View commit details
Commits on Nov 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 51ec3ed - Browse repository at this point
Copy the full SHA 51ec3edView commit details
Commits on Nov 17, 2023
-
Add Sendable conformance (#582)
This change adds conditional `Sendable` conformance to all property wrapper types when their `Value` is `Sendable`, enabling commands to be used in concurrent contexts. Some notes on the implementation: * Fix flag exclusivity issues This derives the `hasUpdated` check from the parsed values data type, rather than storing it in the closure (which breaks sendability) or passing it through the closure invocation (which wasn't finished enough to actually work). * Mark all `transform` methods as `@Sendable` This allows for a stronger, compiler-supported guarantee of sendability when a compound `ParsableArguments` or `ParsableCommand` type is marked `Sendable`. Most transformations shouldn't be a problem, since the general case is that these are pure string -> value transformations. In cases where making such a transformation sendable is impossible, an author can always change the property to be just a string and perform the transformation within the context of the command's execution, in either the `run()` or `validate()` methods. * Add `@preconcurrency` to Sendable closure APIs This adds the `@preconcurrency` attribute to all public APIs that have changed to take a `@Sendable` closure. This will ease the migration path for sendable adoption for ArgumentParser users, since a warning will only appear for using these APIs (like the `transform` parameter in an @option or @argument) once they've turned on strict concurrency checking. I'm also backing out changes that avoided those warnings in the tests and examples, since in most cases those warnings are spurious; unapplied functions don't capture state. See https://forums.swift.org/t/pitch-inferring-sendable-for-methods-and-key-path-literals/68011 for more on this and hopefully an upcoming fix for these issues. * Raise minimum Swift version to 5.7 In order to provide `@preconcurrency` support, the package needs to have a minimum Swift requirement of 5.7. This makes that change and updates the README to indicate this for the next version.
Configuration menu - View commit details
-
Copy full SHA for 511a72a - Browse repository at this point
Copy the full SHA 511a72aView commit details
Commits on Nov 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ac615d4 - Browse repository at this point
Copy the full SHA ac615d4View commit details
Commits on Nov 20, 2023
-
Bash does not like '-' in function names (#573)
Co-authored-by: Kenny York <kenny_york@apple.com>
Configuration menu - View commit details
-
Copy full SHA for 9eded54 - Browse repository at this point
Copy the full SHA 9eded54View commit details -
Update some documentation, mark some code samples as being Swift so that syntax highlighting works properly, and hide some other infrequently-used symbols by adding internal parameter name underscores.
Configuration menu - View commit details
-
Copy full SHA for c769981 - Browse repository at this point
Copy the full SHA c769981View commit details -
Suppress retroactive conformance errors (#603)
These warnings are showing up in tests about types and protocols that are defined within this package, so they don't pose a problem for future library evolution. Instead of using the `@retroactive` attribute, which isn't supported by older compilers, this change fully qualifies the type and protocol in the relevant conformance declarations, which suppresses the issue. Re: https://github.com/apple/swift-evolution/blob/main/proposals/0364-retroactive-conformance-warning.md
Configuration menu - View commit details
-
Copy full SHA for d9182a9 - Browse repository at this point
Copy the full SHA d9182a9View commit details
Commits on Dec 4, 2023
-
Tests: repair the build on Windows (#604)
These use APIs which are not available on Windows, so skipping the test is insufficient as it does not build.
Configuration menu - View commit details
-
Copy full SHA for 66e0d7d - Browse repository at this point
Copy the full SHA 66e0d7dView commit details
Commits on Dec 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c8ed701 - Browse repository at this point
Copy the full SHA c8ed701View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.2.3...1.3.0