[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-cvs] [728] clarify getops usage
From: |
iank |
Subject: |
[Savannah-cvs] [728] clarify getops usage |
Date: |
Thu, 14 Dec 2023 18:01:22 -0500 (EST) |
Revision: 728
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=728
Author: iank
Date: 2023-12-14 18:01:21 -0500 (Thu, 14 Dec 2023)
Log Message:
-----------
clarify getops usage
Modified Paths:
--------------
trunk/sviki/fsf/bash-style-guide.mdwn
Modified: trunk/sviki/fsf/bash-style-guide.mdwn
===================================================================
--- trunk/sviki/fsf/bash-style-guide.mdwn 2023-12-14 22:31:20 UTC (rev
727)
+++ trunk/sviki/fsf/bash-style-guide.mdwn 2023-12-14 23:01:21 UTC (rev
728)
@@ -456,9 +456,9 @@
Use double-equal for string equality, eg: `\[[ $x == 2 ]]`.
-Use GNU getopts whenever there is more than one option, or an option and
-an argument. Reference info at:
-/usr/share/doc/util-linux/examples/
+Use GNU getopts when there is more than one option, or an option and
+an argument. The below snippet is a good template. Reference info on
+most distros is at `/usr/share/doc/util-linux/examples/` .
```
usage() {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-cvs] [728] clarify getops usage,
iank <=