Skip to content

Commit

Permalink
cmd/ofx: Use 'response.ofx' as the default download file everywhere
Browse files Browse the repository at this point in the history
Conflicting defaults led to confusing default behavior between
sub-commands.
  • Loading branch information
aclindsa committed Dec 7, 2020
1 parent 8c1e6ea commit 302ec2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/ofx/bankdownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var filename, bankID, acctID, acctType string

func init() {
defineServerFlags(downloadCommand.Flags)
downloadCommand.Flags.StringVar(&filename, "filename", "./download.ofx", "The file to save to")
downloadCommand.Flags.StringVar(&filename, "filename", "./response.ofx", "The file to save to")
downloadCommand.Flags.StringVar(&bankID, "bankid", "", "BankID (from `get-accounts` subcommand)")
downloadCommand.Flags.StringVar(&acctID, "acctid", "", "AcctID (from `get-accounts` subcommand)")
downloadCommand.Flags.StringVar(&acctType, "accttype", "CHECKING", "AcctType (from `get-accounts` subcommand)")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ofx/ccdownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var ccDownloadCommand = command{

func init() {
defineServerFlags(ccDownloadCommand.Flags)
ccDownloadCommand.Flags.StringVar(&filename, "filename", "./download.ofx", "The file to save to")
ccDownloadCommand.Flags.StringVar(&filename, "filename", "./response.ofx", "The file to save to")
ccDownloadCommand.Flags.StringVar(&acctID, "acctid", "", "AcctID (from `get-accounts` subcommand)")
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/ofx/invdownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var brokerID string

func init() {
defineServerFlags(invDownloadCommand.Flags)
invDownloadCommand.Flags.StringVar(&filename, "filename", "./download.ofx", "The file to save to")
invDownloadCommand.Flags.StringVar(&filename, "filename", "./response.ofx", "The file to save to")
invDownloadCommand.Flags.StringVar(&acctID, "acctid", "", "AcctID (from `get-accounts` subcommand)")
invDownloadCommand.Flags.StringVar(&brokerID, "brokerid", "", "BrokerID (from `get-accounts` subcommand)")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ofx/profiledownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var profileDownloadCommand = command{

func init() {
defineServerFlags(profileDownloadCommand.Flags)
profileDownloadCommand.Flags.StringVar(&filename, "filename", "./profile.ofx", "The file to save to")
profileDownloadCommand.Flags.StringVar(&filename, "filename", "./response.ofx", "The file to save to")
}

func downloadProfileCheckFlags() bool {
Expand Down

0 comments on commit 302ec2e

Please sign in to comment.