Make diff a standalone option.
This commit is contained in:
		
							parent
							
								
									c71675303b
								
							
						
					
					
						commit
						02677cf26e
					
				| 
						 | 
					@ -10,7 +10,9 @@ async function main(): Promise<void> {
 | 
				
			||||||
    .option("--hostname", "The machine's configuration to copy.", {
 | 
					    .option("--hostname", "The machine's configuration to copy.", {
 | 
				
			||||||
      default: (await runAndReturnStdout({ cmd: ["hostname"] })).trim(),
 | 
					      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(
 | 
					    .option(
 | 
				
			||||||
      "--rebuild <rebuild:string>",
 | 
					      "--rebuild <rebuild:string>",
 | 
				
			||||||
      'Run "sudo nixos-rebuild <rebuild>" after copying.',
 | 
					      'Run "sudo nixos-rebuild <rebuild>" after copying.',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue