Skip to content

Comment based help should be loose validating #1021

Description

function Get-CronJob {
<#
.SYNOPSIS
  Returns the current cron jobs from the cron table
.DESCRIPTION
  Returns the current cron jobs from the cron table
.EXAMPLE
  Get-CronJob -UserName Steve
.RETURNVALUE
  CronJob objects
.PARAMETER UserName
  Optional parameter to specify a specific user's cron table
#>

[CmdletBinding()]
[OutputType([PSObject])]
param (
    [Alias("u")][Parameter(Mandatory=$false)][String] $UserName
)
process {
    $crontab = Get-CronTab -user $UserName
    ForEach ($line in $crontab) {
        if ($line.Trim().Length -gt 0)
        {
            ConvertTo-CronJob -crontab $line
        }
    }
}

}

Get-CronJob -?

Expected behavior

help text

Actual behavior

syntax only

Environment data

v0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreWG-Interactive-HelpSystemhelp infrastructure and formatting of help

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions