update flag help

This commit is contained in:
Daylin Morgan 2024-07-10 13:07:46 -05:00
parent a027cdd282
commit 91f5b3c059
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -44,7 +44,7 @@ var rootCmd = &cobra.Command{
Short: "nix begat oizys",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
if debug {
log.Info("running with verbose mode")
log.Info("running in debug mode")
log.SetLevel(log.DebugLevel)
}
oizys.SetFlake(flake)
@ -76,7 +76,7 @@ func init() {
rootCmd.CompletionOptions.HiddenDefaultCmd = true
rootCmd.PersistentFlags().StringVar(&flake, "flake", "", "path to flake ($OIZYS_DIR or $HOME/oizys)")
rootCmd.PersistentFlags().StringVar(&host, "host", "", "host to build (current host)")
rootCmd.PersistentFlags().StringVar(&host, "host", "", "host(s) to build (current host)")
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "show verbose output")
rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "show debug output")
rootCmd.PersistentFlags().BoolVar(&resetCache, "reset-cache", false, "set narinfo-cache-negative-ttl to 0")