Re: [PATCH] Add new git-rm command with documentation
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Feb 21, 2006, 22:14 UTC
- Message-ID
- <20060221221446.GA20744@spearce.org>
- In-Reply-To
- <43FB8F31.9090302@people.pl>
How about supporting -- to break out of the option loop? The rest of the script will support files named --help just fine but the option parser will just spit out usage information.
[...]
Show 20 quoted lines
> +while : ; do > + case "$1" in > + -n) > + show_only=true > + ;; > + -v) > + verbose=--verbose > + ;; > + -f) > + remove_files=true > + ;; > + -*) > + usage > + ;; > + *) > + break > + ;; > + esac > + shift > +done
[...]
Also I don't think the -f option's whitespace matches the others...
-- Shawn.