Skip to content

Commit 0284f34

Browse files
authored
Fix usage output (#13)
Currently if run with `swift run` script outputs: =========================== Error: Missing expected argument '<count> ...' OVERVIEW: Shuffles a deck of playing cards and deals a number of cards. For each count argument, prints a line of tab-delimited cards to stdout, or if there aren't enough cards remaining, prints "Not enough cards" to stderr and exits with a nonzero status. USAGE: deal [<count> ...] ARGUMENTS: <count> The number of cards to deal at a time. OPTIONS: -h, --help Show help information. =========================== Part "USAGE: deal" is misleading. It should be "USAGE: dealer".
1 parent cff68f0 commit 0284f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/dealer/Deal.swift renamed to Sources/dealer/Dealer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import PlayingCard
1818
import ArgumentParser
1919

2020
@main
21-
struct Deal: ParsableCommand {
21+
struct Dealer: ParsableCommand {
2222
enum Error: Swift.Error, CustomStringConvertible {
2323
case notEnoughCards
2424

0 commit comments

Comments
 (0)