Skip to content
Snippets Groups Projects
Unverified Commit a09208e3 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Remove /EDIT flag for ADD

parent 4ece6f0d
No related branches found
No related tags found
1 merge request!1Remove /EDIT flag for ADD
...@@ -63,7 +63,6 @@ func ActionAdd(cmd *dclish.Command) error { ...@@ -63,7 +63,6 @@ func ActionAdd(cmd *dclish.Command) error {
optAll := 0 optAll := 0
optBell := 0 optBell := 0
optBroadcast := 0 optBroadcast := 0
optEdit := 0
optExpiration := &time.Time{} optExpiration := &time.Time{}
optExtract := 0 optExtract := 0
optFolder := []string{} optFolder := []string{}
...@@ -86,10 +85,6 @@ func ActionAdd(cmd *dclish.Command) error { ...@@ -86,10 +85,6 @@ func ActionAdd(cmd *dclish.Command) error {
optBroadcast = 1 optBroadcast = 1
fmt.Printf("TODO: optBroadcast is not yet implemented - you set it to %d\n", optBroadcast) fmt.Printf("TODO: optBroadcast is not yet implemented - you set it to %d\n", optBroadcast)
} }
if cmd.Flags["/EDIT"].Value == "true" {
optEdit = 1
fmt.Printf("TODO: optEdit is not yet implemented - you set it to %d\n", optEdit)
}
if cmd.Flags["/EXPIRATION"].Value != "" { if cmd.Flags["/EXPIRATION"].Value != "" {
// dd-mmm-yyyy, or delta time: dddd // dd-mmm-yyyy, or delta time: dddd
exp, err := time.Parse("2006-01-02", cmd.Flags["/EXPIRATION"].Value) exp, err := time.Parse("2006-01-02", cmd.Flags["/EXPIRATION"].Value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment