aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcode-review3
1 files changed, 1 insertions, 2 deletions
diff --git a/code-review b/code-review
index fb3ce2d..a97df7a 100755
--- a/code-review
+++ b/code-review
@@ -45,8 +45,6 @@ function program_exists () {
program="code-review"
subcommand="$1"
-shift
-
if [ -z "$subcommand" ] || [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
print_usage
exit "$EX_USAGE"
@@ -57,4 +55,5 @@ if ! program_exists "${program}-${subcommand}"; then
exit "$EX_USAGE"
fi
+shift
eval "${program}-${subcommand}" "$@"