[dev] Re: [dev] Re: [dev] Re: [dev] Re: [dev] Re: [dev] [dev] Usage, -h, --help, help, synopsis, …

From: Suraj Kurapati <sunaku_AT_gmail.com>
Date: Sat, 21 Aug 2010 13:47:25 -0700

2010/8/21 yy <yiyu.jgl_AT_gmail.com>:
> #!/bin/sh
>
> USAGE="\
> Usage: $0 -flags args
> Explain the options here.
> You even can even use use shell variables!
> "
>
> if [ $# -lt 1]; then
>    echo -n "$USAGE" 1>&2
>    exit 1
> fi
>
> Is this really so ugly?

No, it seems decent enough. Good idea.
Received on Sat Aug 21 2010 - 22:47:25 CEST

This archive was generated by hypermail 2.2.0 : Sat Aug 21 2010 - 22:48:02 CEST