Mercurial > projects > sievemgr
comparison cmd/sievemgr/put.go @ 22:fc5e6970a0d5 default tip
Add support for specifying an authorization identity on the command line
author | Guido Berhoerster <guido+sievemgr@berhoerster.name> |
---|---|
date | Wed, 17 Feb 2021 07:50:55 +0100 |
parents | 4dff4c3f0fbb |
children |
comparison
equal
deleted
inserted
replaced
21:ad5f548e3b10 | 22:fc5e6970a0d5 |
---|---|
29 "go.guido-berhoerster.org/managesieve" | 29 "go.guido-berhoerster.org/managesieve" |
30 ) | 30 ) |
31 | 31 |
32 func init() { | 32 func init() { |
33 cmdPut.Flag.StringVar(&acctName, "a", "", "Select the account") | 33 cmdPut.Flag.StringVar(&acctName, "a", "", "Select the account") |
34 cmdPut.Flag.StringVar(&authzID, "A", "", "Specify the authorization identity") | |
34 cmdCheck.Flag.StringVar(&acctName, "a", "", "Select the account") | 35 cmdCheck.Flag.StringVar(&acctName, "a", "", "Select the account") |
36 cmdCheck.Flag.StringVar(&authzID, "A", "", "Specify the authorization identity") | |
35 } | 37 } |
36 | 38 |
37 var cmdPut = &command{ | 39 var cmdPut = &command{ |
38 UsageLine: "put [options] name [file]", | 40 UsageLine: "put [options] name [file]", |
39 Run: runPut, | 41 Run: runPut, |