Skip to content
Snippets Groups Projects
Commit ffbffd02 authored by Moul's avatar Moul
Browse files

[exp] Improve usage message and exit

parent 32e6df46
No related branches found
No related tags found
2 merge requests!110Merge dev into master for v0.58.0 release,!103Small changes
Pipeline #9663 failed
......@@ -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]
......
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment