mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-11-22 03:30:04 -05:00
cmd/ofx: Use 'response.ofx' as the default download file everywhere
Conflicting defaults led to confusing default behavior between sub-commands.
This commit is contained in:
parent
8c1e6eafab
commit
4c7c48cab7
@ -20,7 +20,7 @@ var filename, bankID, acctID, acctType string
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
defineServerFlags(downloadCommand.Flags)
|
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(&bankID, "bankid", "", "BankID (from `get-accounts` subcommand)")
|
||||||
downloadCommand.Flags.StringVar(&acctID, "acctid", "", "AcctID (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)")
|
downloadCommand.Flags.StringVar(&acctType, "accttype", "CHECKING", "AcctType (from `get-accounts` subcommand)")
|
||||||
|
@ -18,7 +18,7 @@ var ccDownloadCommand = command{
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
defineServerFlags(ccDownloadCommand.Flags)
|
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)")
|
ccDownloadCommand.Flags.StringVar(&acctID, "acctid", "", "AcctID (from `get-accounts` subcommand)")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ var brokerID string
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
defineServerFlags(invDownloadCommand.Flags)
|
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(&acctID, "acctid", "", "AcctID (from `get-accounts` subcommand)")
|
||||||
invDownloadCommand.Flags.StringVar(&brokerID, "brokerid", "", "BrokerID (from `get-accounts` subcommand)")
|
invDownloadCommand.Flags.StringVar(&brokerID, "brokerid", "", "BrokerID (from `get-accounts` subcommand)")
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ var profileDownloadCommand = command{
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
defineServerFlags(profileDownloadCommand.Flags)
|
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 {
|
func downloadProfileCheckFlags() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user