#! /bin/sh
# Test suite for argp.
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006-2007 Free Software Foundation, Inc.
# This file is part of the GNUlib Library.
#
# This program is free software; you can redistribute it and/or modify
func_compare() {
# If argp was compiled without base_name, it will display full program name
- sed '1{s,: [^ ]*/test-argp,: test-argp,;}' | cmp - $TMP
+ sed '1{
+ s,: [^ ]*/test-argp,: test-argp,
+ }' | diff -c $TMP -
}
####
one one unit
two two units
- -?, --help Give this help list
- --usage Give a short usage message
- -V, --version Print program version
+ -?, --help give this help list
+ --usage give a short usage message
+ -V, --version print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.