Remove no_filenames string, and instead display CLI usage if you don't specify filenames

This commit is contained in:
Micah Lee 2018-09-21 13:58:42 -07:00
parent 44f408c9ac
commit eac4e44dc5
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,7 @@ def main(cwd=None):
# Make sure filenames given if not using receiver mode
if not receive and len(filenames) == 0:
print(strings._('no_filenames'))
parser.print_help()
sys.exit()
# Validate filenames

View File

@ -8,7 +8,6 @@
"ctrlc_to_stop": "Press Ctrl+C to stop the server",
"not_a_file": "{0:s} is not a valid file.",
"not_a_readable_file": "{0:s} is not a readable file.",
"no_filenames": "You must specify a list of files to share.",
"no_available_port": "Could not start the Onion service as there was no available port.",
"other_page_loaded": "Address loaded",
"close_on_timeout": "Stopped because timer expired",