mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-15 01:07:21 -05:00
Remove no_filenames string, and instead display CLI usage if you don't specify filenames
This commit is contained in:
parent
44f408c9ac
commit
eac4e44dc5
@ -67,7 +67,7 @@ def main(cwd=None):
|
|||||||
|
|
||||||
# Make sure filenames given if not using receiver mode
|
# Make sure filenames given if not using receiver mode
|
||||||
if not receive and len(filenames) == 0:
|
if not receive and len(filenames) == 0:
|
||||||
print(strings._('no_filenames'))
|
parser.print_help()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# Validate filenames
|
# Validate filenames
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
"ctrlc_to_stop": "Press Ctrl+C to stop the server",
|
"ctrlc_to_stop": "Press Ctrl+C to stop the server",
|
||||||
"not_a_file": "{0:s} is not a valid file.",
|
"not_a_file": "{0:s} is not a valid file.",
|
||||||
"not_a_readable_file": "{0:s} is not a readable 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.",
|
"no_available_port": "Could not start the Onion service as there was no available port.",
|
||||||
"other_page_loaded": "Address loaded",
|
"other_page_loaded": "Address loaded",
|
||||||
"close_on_timeout": "Stopped because timer expired",
|
"close_on_timeout": "Stopped because timer expired",
|
||||||
|
Loading…
Reference in New Issue
Block a user