Skip to content

Commit fae8353

Browse files
committed
made clean a toggle
Signed-off-by: Zen <[email protected]>
1 parent 97241a9 commit fae8353

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ugrd/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ def main():
2222
argparser.add_argument('--kver', action='store', help='Set the kernel version.')
2323

2424
argparser.add_argument('--clean', action='store_true', help='Enable build directory cleaning.')
25+
argparser.add_argument('--no-clean', action='store_true', help='Disable build directory cleaning.')
26+
2527
argparser.add_argument('--validate', action='store_true', help='Enable config validation.')
2628
argparser.add_argument('--no-validate', action='store_true', help='Disable config validation.')
29+
2730
argparser.add_argument('--hostonly', action='store_true', help='Enable hostonly mode, required for automatic kmod detection.')
2831
argparser.add_argument('--no-hostonly', action='store_true', help='Disable hostonly mode.')
2932

@@ -69,7 +72,7 @@ def main():
6972
kwargs = {'logger': logger}
7073

7174
# Set config toggles
72-
for toggle in ['validate', 'hostonly', 'firmware', 'autodetect_root']:
75+
for toggle in ['validate', 'hostonly', 'firmware', 'autodetect_root', 'clean']:
7376
if arg := getattr(args, f"no_{toggle}"):
7477
kwargs[toggle] = False
7578

0 commit comments

Comments
 (0)