SQOOP-775 Addtowar.sh script is silently ignoring unknown arguments (Jarek Jarcec Cecho)
Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/191f2307 Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/191f2307 Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/191f2307 Branch: refs/heads/branch-1.99.1 Commit: 191f2307efbba25163abfc6590b8ef90852ecb86 Parents: 21a3943 Author: Bilung Lee <[email protected]> Authored: Mon Dec 17 11:48:57 2012 -0800 Committer: Jarek Jarcec Cecho <[email protected]> Committed: Mon Dec 17 17:37:30 2012 -0800 ---------------------------------------------------------------------- dist/src/main/bin/addtowar.sh | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/191f2307/dist/src/main/bin/addtowar.sh ---------------------------------------------------------------------- diff --git a/dist/src/main/bin/addtowar.sh b/dist/src/main/bin/addtowar.sh index 27916ee..fd41608 100644 --- a/dist/src/main/bin/addtowar.sh +++ b/dist/src/main/bin/addtowar.sh @@ -231,6 +231,12 @@ do exit -1 fi warPath=$1 + else + echo + echo "Unknown argument: $1" + echo + printUsage + exit -1 fi shift
