Skip to content

Commit

Permalink
Add negated versions of --without-progress and --ignore-symlinks
Browse files Browse the repository at this point in the history
This improves consistency and is trivial to implement.

(cherry picked from commit 404ea26)
  • Loading branch information
DemiMarie authored and marmarek committed Nov 5, 2024
1 parent 96fdcf1 commit 68b2729
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qubes-rpc/qvm-copy
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ usage () {
echo "usage: $0 [--without-progress] [--ignore-symlinks] FILE [FILE ...]"
fi
echo 'Options:
--no-ignore-symlinks Do not ignore symbolic links (default).
--ignore-symlinks Ignore symbolic links.
--with-progress Show a progress indicator (default).
--without-progress Do not show a progress indicator.
-h, --help Show this message and exit.
-- Stop searching for options.
If there is a conflict, later options override earlier options.
'

if [ "$OPERATION_TYPE" = "move" ]; then
Expand All @@ -63,7 +66,9 @@ export PROGRESS_TYPE=console
while [ "$#" -gt 0 ]; do
case $1 in
(--without-progress) export PROGRESS_TYPE=none; shift;;
(--with-progress) export PROGRESS_TYPE=console; shift;;
(--ignore-symlinks) ignore_symlinks=true; shift;;
(--no-ignore-symlinks) unset ignore_symlinks; shift;;
(-h|--help) usage 0;;
(--) shift; break;;
(-*) usage 1;;
Expand Down

0 comments on commit 68b2729

Please sign in to comment.