mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2024-12-22 22:06:05 +01:00
refactor
This commit is contained in:
parent
ef3fe0fc96
commit
9d6900e0d8
@ -30,7 +30,7 @@ def parse_args():
|
||||
|
||||
parser.add_argument('--chunk-dir',
|
||||
help='Chunks are saved in this directory. '
|
||||
'Defaults to directory `<SUBVOLUME>.chunk` next to SUBVOLUME.',
|
||||
'Defaults to directory `<TARGET_SUBVOLUME>.chunk` next to TARGET_SUBVOLUME.',
|
||||
dest='chunk_dir',
|
||||
type=Path,
|
||||
metavar='CHUNK_DIR',
|
||||
@ -62,11 +62,11 @@ def parse_args():
|
||||
)
|
||||
|
||||
parser.add_argument('target_path',
|
||||
help='Path where the subvolume will be created. '
|
||||
help='Path where CHILD_SUBVOLUME will be replicated. '
|
||||
'The last component of the path '
|
||||
'must be equal to the name of CHILD_SUBVOLUME on the sending side.',
|
||||
type=Path,
|
||||
metavar='SUBVOLUME'
|
||||
metavar='TARGET_SUBVOLUME'
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
@ -42,7 +42,7 @@ def parse_args():
|
||||
)
|
||||
|
||||
parser.add_argument('--compressed-data',
|
||||
help='Forwarded to btrfs-send.',
|
||||
help='Reduce network bandwidth by compressing data.',
|
||||
dest='compressed_data',
|
||||
action='store_true',
|
||||
default=False,
|
||||
@ -65,7 +65,7 @@ def parse_args():
|
||||
)
|
||||
|
||||
parser.add_argument('child',
|
||||
help='Path to child subvolume. Forwarded to btrfs-send.',
|
||||
help='Path to child subvolume.',
|
||||
type=Path,
|
||||
metavar='CHILD_SUBVOLUME'
|
||||
)
|
||||
@ -81,6 +81,7 @@ def parse_args():
|
||||
else:
|
||||
args.chunk_dir = args.chunk_dir.absolute()
|
||||
|
||||
# parent
|
||||
if args.parent is not None:
|
||||
args.parent = args.parent.absolute()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user