mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Update argparse4j
This commit is contained in:
parent
06e9f8ba64
commit
8e8eed7b06
10 changed files with 21 additions and 18 deletions
|
@ -30,12 +30,12 @@ public class UpdateProfileCommand implements LocalCommand {
|
|||
|
||||
@Override
|
||||
public void handleCommand(final Namespace ns, final Manager m) throws CommandException {
|
||||
var givenName = ns.getString("given_name");
|
||||
var familyName = ns.getString("family_name");
|
||||
var givenName = ns.getString("given-name");
|
||||
var familyName = ns.getString("family-name");
|
||||
var about = ns.getString("about");
|
||||
var aboutEmoji = ns.getString("about_emoji");
|
||||
var aboutEmoji = ns.getString("about-emoji");
|
||||
var avatarPath = ns.getString("avatar");
|
||||
boolean removeAvatar = ns.getBoolean("remove_avatar");
|
||||
boolean removeAvatar = ns.getBoolean("remove-avatar");
|
||||
|
||||
Optional<File> avatarFile = removeAvatar
|
||||
? Optional.absent()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue