Skip to content

Commit

Permalink
refactor: spacesavers2_e2e now has a -v or --version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kopardev committed Feb 14, 2024
1 parent f340eb2 commit dcde9d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spacesavers2_e2e
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ set -e -o pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

# printing version
if [ $# -eq 1 ];then
case $1 in
-v|--version)
spacesavers2_catalog --version
exit 0
esac
fi

# ncpus=`nproc`

ARGPARSE_DESCRIPTION="End-to-end run of spacesavers2"
Expand All @@ -17,6 +26,7 @@ parser.add_argument('-d','--maxdepth',required=False, help='maxdepth for mimeo (
parser.add_argument('-l','--limit',required=False, help='limit for running spacesavers_grubbers (default 5)', default=5)
parser.add_argument('-q','--quota',required=False, help='total size of the volume (default = 200 for /data/CCBR)', default=200)
parser.add_argument('-o','--outfolder',required=True, help='Folder where all spacesavers_e2e output files will be saved')
parser.add_argument('-v','--version',required=False, action='store_true', help='print version')
EOF

# assuming that python 3.11 is available with xxhash module
Expand Down

0 comments on commit dcde9d3

Please sign in to comment.