in build_docs.pl [1140:1175]
sub check_opts {
#===================================
if ( !$Opts->{doc} ) {
die('--alternatives only compatible with --doc') if $Opts->{alternatives};
die('--chunk only compatible with --doc') if $Opts->{chunk};
# Lang will be 'en' even if it isn't specified so we don't check it.
die('--lenient only compatible with --doc') if $Opts->{lenient};
die('--out only compatible with --doc') if $Opts->{out};
die('--resource only compatible with --doc') if $Opts->{resource};
die('--respect_edit_url_overrides only compatible with --doc') if $Opts->{respect_edit_url_overrides};
die('--single only compatible with --doc') if $Opts->{single};
die('--toc only compatible with --doc') if $Opts->{toc};
die('--private only compatible with --doc') if $Opts->{private};
}
if ( !$Opts->{all} ) {
die('--keep_hash only compatible with --all') if $Opts->{keep_hash};
die('--linkcheckonly only compatible with --all') if $Opts->{linkcheckonly};
die('--push only compatible with --all') if $Opts->{push};
die('--announce_preview only compatible with --all') if $Opts->{announce_preview};
die('--rebuild only compatible with --all') if $Opts->{rebuild};
die('--reposcache only compatible with --all') if $Opts->{reposcache};
die('--skiplinkcheck only compatible with --all') if $Opts->{skiplinkcheck};
die('--warnlinkcheck only compatible with --all') if $Opts->{warnlinkcheck};
die('--sub_dir only compatible with --all') if $Opts->{sub_dir};
}
if ( !$Opts->{preview} ) {
die('--gapped only compatible with --preview') if $Opts->{gapped};
}
if ( !$Opts->{all} && !$Opts->{preview} ) {
die('--reference only compatible with --all or --preview') if $Opts->{reference};
die('--target_repo only compatible with --all or --preview') if $Opts->{target_repo};
}
if ($Opts->{skiplinkcheck} && $Opts->{warnlinkcheck} ) {
die('--warnlinkcheck is incompatible with --skiplinkcheck');
}
}