1
Fork 0

Make diff a standalone option.

This commit is contained in:
Bauke 2023-02-13 12:25:38 +01:00
parent c71675303b
commit 02677cf26e
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ async function main(): Promise<void> {
.option("--hostname", "The machine's configuration to copy.", {
default: (await runAndReturnStdout({ cmd: ["hostname"] })).trim(),
})
.option("--diff", 'Output diffs between local and "/etc/nixos/" files.')
.option("--diff", 'Output diffs between local and "/etc/nixos/" files.', {
standalone: true,
})
.option(
"--rebuild <rebuild:string>",
'Run "sudo nixos-rebuild <rebuild>" after copying.',