bbrk24
October 10, 2023, 6:24pm
1
$ swift package -help
error: Unknown option '-help'
Usage: swift package <options> <subcommand>
See 'package -help' for more information.
That's not the most useful help screen I've seen.
For context:
$ swift -version
Swift version 5.9 (swift-5.9-RELEASE)
Target: x86_64-unknown-linux-gnu
1 Like
NeoNacho
(Boris Buegling)
October 10, 2023, 6:25pm
2
Seems like a bug in the output, --help
is the correct option.
1 Like
jrose
(Jordan Rose)
October 10, 2023, 6:58pm
3
I’d suggest making -h
, -help
, and --help
Just Work, at least if they are the only argument, because how is someone supposed to know your tool’s convention when they just got it? Bonus points for /?
as well.
4 Likes
NeoNacho
(Boris Buegling)
October 10, 2023, 7:07pm
4
I think that's what the code is trying to do, I see
helpNames: [.short, .long, .customLong("help", withSingleDash: true)]
but evidently it only half works.
2 Likes