From 787f08db86de5e1e47c7f269837410be21eef005 Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 25 Nov 2022 16:58:15 +0400 Subject: [PATCH] Drop cmdline package --- cmdline/commandline.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 cmdline/commandline.go diff --git a/cmdline/commandline.go b/cmdline/commandline.go deleted file mode 100644 index eb17528..0000000 --- a/cmdline/commandline.go +++ /dev/null @@ -1,22 +0,0 @@ -package cmdline - -import "flag" - -// Args - struct contains all command-line arguments -type Args struct { - Config string - Help bool -} - -// Parse - -func Parse() (args Args) { - flag.BoolVar(&args.Help, "h", false, "Show usage") - flag.StringVar(&args.Config, "c", "dipdup.yml", "Path to YAML config file") - - flag.Parse() - - if args.Help { - flag.Usage() - } - return -}