-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes to script inputs and running.
- Loading branch information
1 parent
5970aaa
commit 8182a44
Showing
4 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import sys | ||
|
||
print('12345', '54321') | ||
# Check if any command-line arguments were provided | ||
if len(sys.argv) == 2: | ||
|
||
for arg in sys.argv: | ||
# Print each argument on a separate line | ||
print(arg) | ||
# No arguments were passed, print default coordinates | ||
print('12345', '54321') | ||
else: | ||
# Arguments were passed, print an error message to standard error | ||
print("Error: Unexpected arguments received.", file=sys.stderr) | ||
print('12345', '54321') | ||
sys.exit(1) # Optionally exit with a non-zero status to indicate an error | ||
|
||
# else: | ||
# # Arguments were passed, print an error message to standard error | ||
# print("Error: Unexpected arguments received.", file=sys.stderr) | ||
# print('12345', '54321') | ||
# sys.exit(1) # Optionally exit with a non-zero status to indicate an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters