Skip to content

Commit

Permalink
CheckRange - Thanks to Dmitriy Kovalev
Browse files Browse the repository at this point in the history
  • Loading branch information
whoschek committed Jul 21, 2024
1 parent 1229bc6 commit 40e3fc5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions wbackup_zfs/wbackup_zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,20 @@ def __call__(self, parser, namespace, values, option_string=None):


#############################################################################
# Copied from https://gist.github.com/dmitriykovalev/2ab1aa33a8099ef2d514925d84aa89e7/30961300d3f8192f775709c06ff9a5b777475adf
# Written by Dmitriy Kovalev
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class CheckRange(argparse.Action):
ops = {'inf': operator.gt,
'min': operator.ge,
Expand Down

0 comments on commit 40e3fc5

Please sign in to comment.