diff --git a/examples/load_credentials_file.py b/examples/load_credentials_file.py index a3de26d6b6bcb8da0d8451933bb156a64430d239..48212c64a6296cf6e7b8a336ce8921fc962ec260 100644 --- a/examples/load_credentials_file.py +++ b/examples/load_credentials_file.py @@ -3,14 +3,9 @@ import sys from duniterpy.key import SigningKey if __name__ == "__main__": - if len(sys.argv) < 2: - print( - """ - Usage: - python load_credentials_file.py FILEPATH - """ - ) + print("Usage: python load_credentials_file.py FILEPATH") + sys.exit(1) # capture filepath argument credentials_filepath = sys.argv[1] diff --git a/examples/load_scuttlebutt_file.py b/examples/load_scuttlebutt_file.py index 675b205cd2742d1dc2ecf2ea57ce1fd0ea84172d..cd6d192c3ed43bd4d405708db6afa06f5ee86584 100644 --- a/examples/load_scuttlebutt_file.py +++ b/examples/load_scuttlebutt_file.py @@ -3,14 +3,9 @@ import sys from duniterpy.key import SigningKey if __name__ == "__main__": - if len(sys.argv) < 2: - print( - """ - Usage: - python load_scuttlebutt_file.py FILEPATH - """ - ) + print("Usage: python load_scuttlebutt_file.py FILEPATH") + sys.exit(1) # capture filepath argument scuttlebutt_filepath = sys.argv[1]