Skip to content

Commit

Permalink
Show help for few arguments on roscat
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 4, 2016
1 parent 38fc415 commit c19eb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/rosbash/rosbash
Expand Up @@ -284,7 +284,7 @@ function roscp {

function roscat {
local arg
if [[ $1 = "--help" ]]; then
if [[ $1 = "--help" ]] || [[ $# -ne 2 ]]; then
echo -e "usage: roscat [package] [file]\n\nDisplay a file content within a package."
return 0
fi
Expand Down
2 changes: 1 addition & 1 deletion tools/rosbash/roszsh
Expand Up @@ -265,7 +265,7 @@ function roscp {

function roscat {
local arg
if [[ $1 = "--help" ]]; then
if [[ $1 = "--help" ]] | [[ $# -ne 2 ]]; then
echo -e "usage: roscat [package] [file]\n\nDisplay a file content within a package."
return 0
fi
Expand Down

0 comments on commit c19eb7a

Please sign in to comment.