m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/bash.md b/bash.md
index 12312c6..6258795 100644
--- a/bash.md
+++ b/bash.md
@@ -88,3 +88,10 @@ All keys:
*) error "Unexpected option ${flag}" ;;
esac
done
+
+### With positional arguments
+
+Positional arguments will have to be supplied after flag options (`command
+[options] <args>`):
+
+ shift $((OPTIND-1))