Skip to content

#Requires -Module works also inside function (not doc'd) #961

Closed
@it-praktyk

Description

@it-praktyk

The #Requires -Module statement works also when the statement is inside function - like ilustrated on the screenshot below.

test-requires

Help about_Requires states:

You can use #Requires statements in any script. You cannot use them in functions, cmdlets, or snap-ins.

Metadata

Metadata

Assignees

Labels

Pri0Priority - Highest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions