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.
  • Loading branch information
DemiMarie committed Nov 4, 2024
1 parent b11de41 commit 404ea26
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 @@ -46,11 +46,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 @@ -71,7 +74,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 404ea26

Please sign in to comment.