Skip to content

Commit d746f77

Browse files
authored
Merge pull request #112 from forsyth2/update-help-text
Update help text
2 parents 77aa3f5 + 2bb6cea commit d746f77

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

zstash/create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def create():
2323
parser.add_argument('path', type=str, help='root directory to archive')
2424
required = parser.add_argument_group('required named arguments')
2525
required.add_argument(
26-
'--hpss', type=str, help='path to HPSS storage',
26+
'--hpss', type=str, help='path to storage on HPSS. Set to "none" for local archiving. Must be set to "none" if the machine does not have HPSS access.',
2727
required=True)
2828
optional = parser.add_argument_group('optional named arguments')
2929
optional.add_argument(
@@ -35,10 +35,10 @@ def create():
3535
default=256)
3636
optional.add_argument(
3737
'--keep',
38-
help='keep tar files in local cache (default off)',
38+
help='if --hpss is not "none", keep the tar files in the local archive (cache) after uploading to the HPSS archive. Default is to delete the tar files. If --hpss=none, this flag has no effect.',
3939
action="store_true")
4040
optional.add_argument(
41-
'--cache', type=str, help='path to store files')
41+
'--cache', type=str, help='the path to the zstash archive on the local file system. The default name is "zstash".')
4242
optional.add_argument('-v', '--verbose', action="store_true",
4343
help="increase output verbosity")
4444
# Now that we're inside a subcommand, ignore the first two argvs

zstash/extract.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ def extract(keep_files=True):
100100
usage='zstash extract [<args>] [files]',
101101
description='Extract files from existing archive')
102102
optional = parser.add_argument_group('optional named arguments')
103-
optional.add_argument('--hpss', type=str, help='path to HPSS storage')
103+
optional.add_argument('--hpss', type=str, help='path to storage on HPSS. Set to "none" for local archiving. Must be set to "none" if the machine does not have HPSS access.')
104104
optional.add_argument('--workers', type=int, default=1, help='num of multiprocess workers')
105-
optional.add_argument('--keep', action='store_true', help='keep tar files in local cache (default off)')
105+
optional.add_argument('--keep', action='store_true', help='if --hpss is not "none", keep the downloaded tar files in the local archive (cache) after file extraction. Default is to delete the tar files. If --hpss=none, this flag has no effect.')
106106
optional.add_argument(
107-
'--cache', type=str, help='path to store files')
107+
'--cache', type=str, help='path to the zstash archive on the local file system. The default name is "zstash".')
108108
optional.add_argument('-v', '--verbose', action="store_true",
109109
help="increase output verbosity")
110110
parser.add_argument('files', nargs='*', default=['*'])

zstash/ls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ def ls():
1515
Supports the '-l' argument for more information.
1616
"""
1717
parser = argparse.ArgumentParser(
18-
usage='zstash ls [<args>]',
19-
description='List the files from an existing archive')
18+
usage='zstash ls [<args>] [files]',
19+
description='List the files from an existing archive. If `files` is specified, then only the files specified will be listed. If `hpss=none`, then this will list the directories and files in the current directory excluding the cache.')
2020
optional = parser.add_argument_group('optional named arguments')
2121
optional.add_argument('--hpss', type=str, help='path to HPSS storage')
2222
optional.add_argument('-l', dest='long', action='store_const', const=True,
2323
help='show more information for the files')
2424
optional.add_argument(
25-
'--cache', type=str, help='path to store files')
25+
'--cache', type=str, help='the path to the zstash archive on the local file system. The default name is "zstash".')
2626
optional.add_argument('-v', '--verbose', action="store_true",
2727
help="increase output verbosity")
2828

zstash/update.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def update():
2020
description='Update an existing zstash archive')
2121
required = parser.add_argument_group('required named arguments')
2222
optional = parser.add_argument_group('optional named arguments')
23-
optional.add_argument('--hpss', type=str, help='path to HPSS storage')
23+
optional.add_argument('--hpss', type=str, help='path to storage on HPSS. Set to "none" for local archiving. Must be set to "none" if the machine does not have HPSS access.')
2424
optional.add_argument(
2525
'--exclude', type=str,
2626
help='comma separated list of file patterns to exclude')
@@ -30,10 +30,10 @@ def update():
3030
action="store_true")
3131
optional.add_argument(
3232
'--keep',
33-
help='keep tar files in local cache (default off)',
33+
help='if --hpss is not "none", keep the tar files in the local archive (cache) after uploading to the HPSS archive. Default is to delete the tar files. If --hpss=none, this flag has no effect.',
3434
action="store_true")
3535
optional.add_argument(
36-
'--cache', type=str, help='path to store files')
36+
'--cache', type=str, help='path to the zstash archive on the local file system. The default name is "zstash".')
3737
optional.add_argument('-v', '--verbose', action="store_true",
3838
help="increase output verbosity")
3939
args = parser.parse_args(sys.argv[2:])

0 commit comments

Comments
 (0)