Skip to content

Commit ef13fca

Browse files
[no-relnote] Remove unused func ParseArgs
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
1 parent d1d1676 commit ef13fca

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cmd/nvidia-ctk-installer/container/container.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,6 @@ type Options struct {
5252
HostRootMount string
5353
}
5454

55-
// ParseArgs parses the command line arguments to the CLI
56-
func ParseArgs(c *cli.Context, o *Options) error {
57-
if o.RuntimeDir != "" {
58-
logrus.Debug("Runtime directory already set; ignoring arguments")
59-
return nil
60-
}
61-
62-
args := c.Args()
63-
64-
logrus.Infof("Parsing arguments: %v", args.Slice())
65-
if c.NArg() != 1 {
66-
return fmt.Errorf("incorrect number of arguments")
67-
}
68-
69-
o.RuntimeDir = args.Get(0)
70-
71-
logrus.Infof("Successfully parsed arguments")
72-
73-
return nil
74-
}
75-
7655
// Configure applies the options to the specified config
7756
func (o Options) Configure(cfg engine.Interface) error {
7857
err := o.UpdateConfig(cfg)

0 commit comments

Comments
 (0)