opt_version.c revision 1.2
1/* $NetBSD: opt_version.c,v 1.2 2021/10/28 20:31:17 rillig Exp $ */
2/* $FreeBSD$ */
3
4/*
5 * Tests for the option '--version', which outputs the program version and
6 * exits immediately.
7 */
8
9#indent input
10When the option '--version' is given, any other options are ignored.
11Therefore the source file, if given, can contain arbitrary text that
12even might generate syntax errors when given to a C compiler.
13#indent end
14
15#indent run --version
16NetBSD indent 2.1
17#indent end
18