(options []serpent.Option)
| 602 | } |
| 603 | |
| 604 | func skipDeprecatedOptions(options []serpent.Option) []serpent.Option { |
| 605 | var activeOptions []serpent.Option |
| 606 | |
| 607 | for _, opt := range options { |
| 608 | isDeprecated := len(opt.UseInstead) > 0 |
| 609 | if !isDeprecated { |
| 610 | activeOptions = append(activeOptions, opt) |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | return activeOptions |
| 615 | } |
| 616 | |
| 617 | // UnsetEnv unsets all environment variables that are used |
| 618 | // to configure the options. |