fix error language

This commit is contained in:
Akash 2020-07-22 17:25:15 +05:30 committed by GitHub
parent f7313b255a
commit b43bacb7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ def main():
return return
if not args.url: if not args.url:
print("Specify an URL. Use --help for help.") print("Specify an URL. See --help")
return return
# create the object with or without the user_agent # create the object with or without the user_agent
@ -97,9 +97,7 @@ def main():
elif args.get: elif args.get:
_get(obj, args) _get(obj, args)
else: else:
print("Usage: waybackpy [OPTIONS] --url [URL...] --user_agent [USER AGENT].\ print("Usage: waybackpy --url [URL] --user_agent [USER AGENT] [OPTIONS]. See --help")
\nwaybackpy: error: You must provide one URL. See --help\
\nLatest docs and version available at https://github.com/akamhy/waybackpy")
if __name__ == "__main__": if __name__ == "__main__":