Skip to content

Commit

Permalink
Help text (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 authored Jul 5, 2023
1 parent 3918b02 commit 61a38b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def testCheckKeepTars(self):
)
self.assertEqualOrStop(
output + err,
'INFO: zstash/000000.tar exists. Checking expected size matches actual size.\nINFO: Opening tar archive {}/000000.tar\nINFO: Checking file1.txt\nINFO: Checking file2.txt\nINFO: No failures detected when checking the files. If you have a log file, run "grep -i Exception <log-file>" to double check.\n'.format(
'For help, please see https://e3sm-project.github.io/zstash. Ask questions at https://github.com/E3SM-Project/zstash/discussions/categories/q-a.\nINFO: zstash/000000.tar exists. Checking expected size matches actual size.\nINFO: Opening tar archive {}/000000.tar\nINFO: Checking file1.txt\nINFO: Checking file2.txt\nINFO: No failures detected when checking the files. If you have a log file, run "grep -i Exception <log-file>" to double check.\n'.format(
self.cache
),
)
Expand Down
4 changes: 4 additions & 0 deletions zstash/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def main():
# exclude the rest of the args too, or validation will fail
args: argparse.Namespace = parser.parse_args(sys.argv[1:2])

print(
"For help, please see https://e3sm-project.github.io/zstash. Ask questions at https://github.com/E3SM-Project/zstash/discussions/categories/q-a."
)

if args.command == "version":
print(__version__)
elif args.command == "create":
Expand Down

0 comments on commit 61a38b0

Please sign in to comment.