Skip to content

Commit

Permalink
Renamed gotree prune date to cut date
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlemoine committed Sep 26, 2024
1 parent de3a2f0 commit bdbd8f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions cmd/cut.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package cmd

import (
"github.com/spf13/cobra"
)

var cutdateCmd = &cobra.Command{
Use: "cut",
Short: "Cut the tree",
Long: ``,
RunE: func(cmd *cobra.Command, args []string) (err error) { return },
}

func init() {
RootCmd.AddCommand(cutdateCmd)
}
2 changes: 1 addition & 1 deletion cmd/prunedate.go → cmd/cutdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ If max-date falls on an internal branch, we do not take this part of the tree, a
}

func init() {
pruneCmd.AddCommand(pruneDateCmd)
cutdateCmd.AddCommand(pruneDateCmd)
pruneDateCmd.PersistentFlags().StringVarP(&intreefile, "input", "i", "stdin", "Input tree(s) file")
pruneDateCmd.PersistentFlags().StringVarP(&outtreefile, "output", "o", "stdout", "Forest output file")
pruneDateCmd.PersistentFlags().Float64Var(&pruneMinDate, "min-date", 0, "Minimum date to cut the tree")
Expand Down

0 comments on commit bdbd8f1

Please sign in to comment.