cmd/accounts.go
changeset 29 4f12e5d4ef75
parent 28 79aa812c0dd2
child 30 14561d44211b
equal deleted inserted replaced
28:79aa812c0dd2 29:4f12e5d4ef75
   330 			account, err := gClient.GetCurrentAccount()
   330 			account, err := gClient.GetCurrentAccount()
   331 			if err != nil {
   331 			if err != nil {
   332 				return err
   332 				return err
   333 			}
   333 			}
   334 			opt.accountID = account.ID
   334 			opt.accountID = account.ID
       
   335 			if verbose {
       
   336 				errPrint("User account ID: %d", opt.accountID)
       
   337 			}
   335 		}
   338 		}
   336 	default:
   339 	default:
   337 		// The other subcommands here require an account ID
   340 		// The other subcommands here require an account ID
   338 		if opt.accountID < 1 {
   341 		if opt.accountID < 1 {
   339 			return errors.New("missing account ID")
   342 			return errors.New("missing account ID")