opt_version.c revision 1.1
11.1Srillig/* $NetBSD: opt_version.c,v 1.1 2021/10/23 20:23:27 rillig Exp $ */
21.1Srillig/* $FreeBSD$ */
31.1Srillig
41.1Srillig/*
51.1Srillig * Tests for the option '--version', which outputs the program version and
61.1Srillig * exits immediately.
71.1Srillig */
81.1Srillig
91.1Srillig#indent input
101.1SrilligWhen the option '--version' is given, any other options are ignored.
111.1SrilligTherefore the source file, if given, can contain arbitrary text that
121.1Srilligeven might generate syntax errors when given to a C compiler.
131.1Srillig#indent end
141.1Srillig
151.1Srillig#indent run --version
161.1SrilligFreeBSD indent 2.0
171.1Srillig#indent end
18