diff --git a/sevenkeys/main.go b/sevenkeys/main.go index 6a8f402..ed6cc41 100644 --- a/sevenkeys/main.go +++ b/sevenkeys/main.go @@ -15,6 +15,7 @@ const ( CreateStorageAreaSubcommand string = "createstorage" ImportSubcommand string = "import" SearchSubcommand string = "search" + DeckSubcommand string = "deck" ) func main() { @@ -83,6 +84,12 @@ func main() { logic.Check(err) logic.GenericSearch(searchOptions) break + case DeckSubcommand: + deckCmd := flag.NewFlagSet(DeckSubcommand, flag.ExitOnError) + deckCmd.Parse(flag.Args()[1:]) + + filename := deckCmd.Args()[0] + break default: fmt.Fprintf(os.Stderr, "Unrecognized subcommand: %s\n", os.Args[1]) break