File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
cmd/nvidia-ctk-installer/container Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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
7756func (o Options ) Configure (cfg engine.Interface ) error {
7857 err := o .UpdateConfig (cfg )
You can’t perform that action at this time.
0 commit comments