Utils/rmdir.ps1

Register-GnuUtil @{
    Name         = 'rmdir'
    Category     = 'File and directory operations'
    Synopsis     = 'Remove empty directories.'
    Usage        = @('rmdir [OPTION]... DIRECTORY...')
    Description  = @('Remove the DIRECTORY(ies), if they are empty.')
    FileOperands = $true
    Options      = @(
        @{ Long = 'ignore-fail-on-non-empty'; Help = 'ignore each failure to remove a non-empty directory' }
        @{ Short = 'p'; Long = 'parents'; Help = "remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b' is similar to 'rmdir a/b a'" }
        @{ Short = 'v'; Long = 'verbose'; Help = 'output a diagnostic for every directory processed' }
    )
}