Utils/printenv.ps1

Register-GnuUtil @{
    Name        = 'printenv'
    Category    = 'Running commands'
    Synopsis    = 'Print all or part of environment.'
    Usage       = @('printenv [OPTION]... [VARIABLE]...')
    Description = @(
        'Print the values of the specified environment VARIABLE(s).',
        'If no VARIABLE is specified, print name and value pairs for them all.'
    )
    Options     = @(
        @{ Short = '0'; Long = 'null'; Help = 'end each output line with NUL, not newline' }
    )
    Notes       = @(
        'Exit status is 1 if any VARIABLE is not set.',
        'PowerShell note: without VARIABLE the pairs are sorted by name; on Windows names are case-insensitive.'
    )
}