From 5f0b11403595ecb61fcc3ac2e8a01297b5e61058 Mon Sep 17 00:00:00 2001 From: Patrik Meijer <6518904+pmeijer@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:04:00 -0400 Subject: [PATCH] Update clean_up.js to allow option of skipping commits --- src/bin/clean_up.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/clean_up.js b/src/bin/clean_up.js index f2006f714..a1aa1def7 100644 --- a/src/bin/clean_up.js +++ b/src/bin/clean_up.js @@ -201,7 +201,7 @@ if (require.main === module) { .option('-d, --del [boolean]', 'If true will do the deletion [false].', false) .option('-l, --list [boolean]', 'If true will list all the projects this user has access to [false].', false) .option('-t, --daysAgo [number]', 'Minimum age (last viewed) of a project to delete [10].', 10) - .option('-c, --commits [number]', 'Maximum number of commits (-1 to skip) of a project to delete [1].', 1) + .option('-c, --commits [number]', 'Maximum number of commits (-1 to skip) of a project to delete [-1].', -1) .option('-b, --branches [number]', 'Maximum number of branches of a project to delete [1].', 1) .option('-r, --regex [string]', 'Project names must match the regexp [.*].', '.*') .option('-u, --username [string]', 'The user account being used. [guest account]') @@ -227,4 +227,4 @@ if (require.main === module) { .catch(function (err) { console.error(err.stack); }); -} \ No newline at end of file +}