Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/swedbank-cli b/swedbank-cli
- index 4f2fed0..cc0f92a 100755
- --- a/swedbank-cli
- +++ b/swedbank-cli
- @@ -97,11 +97,9 @@ def main():
- (options, args) = parser.parse_args()
- username = options.username
- password = options.password
- - if not username:
- - print "You need a username"
- - sys.exit(1)
- - if not password:
- - print "You need a password"
- +
- + if not (username and password):
- + parser.print_help()
- sys.exit(1)
- if options.account:
- @@ -118,4 +116,4 @@ def main():
- swed.accounts(account)
- if __name__ == "__main__":
- - main()
- \ No newline at end of file
- + main()
Add Comment
Please, Sign In to add comment