Skip to content

Commit

Permalink
Correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 22, 2018
1 parent 7ae8cba commit bbaf694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
vfs "github.com/twpayne/go-vfs"
)

var _importommand = &cobra.Command{
var _importCommand = &cobra.Command{
Use: "import",
Args: cobra.MaximumNArgs(1),
Short: "Import an archive",
Expand All @@ -33,9 +33,9 @@ type importCommandConfig struct {
}

func init() {
rootCommand.AddCommand(_importommand)
rootCommand.AddCommand(_importCommand)

persistentFlags := _importommand.PersistentFlags()
persistentFlags := _importCommand.PersistentFlags()
persistentFlags.StringVarP(&config._import.destination, "destination", "d", "", "destination prefix")
persistentFlags.IntVar(&config._import.stripComponents, "strip-components", 0, "strip components")
persistentFlags.BoolVarP(&config._import.removeDestination, "remove-destination", "r", false, "remove destination before import")
Expand Down

0 comments on commit bbaf694

Please sign in to comment.