Improve command line help

Fixes #450
This commit is contained in:
AsamK 2021-05-20 20:54:11 +02:00
parent ab40344567
commit b8a0901fbd
27 changed files with 38 additions and 15 deletions

View file

@ -16,6 +16,7 @@ public class UpdateProfileCommand implements LocalCommand {
@Override
public void attachToSubparser(final Subparser subparser) {
subparser.help("Set a name, about and avatar image for the user profile");
subparser.addArgument("--given-name", "--name").help("New profile (given) name");
subparser.addArgument("--family-name").help("New profile family name (optional)");
subparser.addArgument("--about").help("New profile about text");
@ -24,8 +25,6 @@ public class UpdateProfileCommand implements LocalCommand {
final var avatarOptions = subparser.addMutuallyExclusiveGroup();
avatarOptions.addArgument("--avatar").help("Path to new profile avatar");
avatarOptions.addArgument("--remove-avatar").action(Arguments.storeTrue());
subparser.help("Set a name, about and avatar image for the user profile");
}
@Override