Closed MahdiBM closed 1 year ago
ParsableCommand
types provide this behavior (printing help by default) through the default implementation of the run()
method. Since the swiftly
command provides an empty implementation, that isn't done. You can either remove that implementation or print the result of Swiftly.helpMessage()
from within that method.
Swiftly (swift-server/swiftly, this revision as of writing this issue) doesn't output anything when nothing is passed to it. This seems very much like an issue of this package, not a fault of Swiftly. Related to https://github.com/swift-server/swiftly/issues/38.
ArgumentParser version:
1.1.2
& themain
branch Swift version:Checklist
main
branch of this packageSteps to Reproduce
swift run swiftly
. There is no output. This is the issue.swift run swiftly xxx
. Makes you sure the actual command is working:Expected behavior
The output of
swift run swiftly
should be something like the output ofswift run swiftly --help
. It definitely should not be empty as that might make users think the command is not installed / not working.Actual behavior
Running
swift run swiftly
results in no output.