Skip to content

Commit

Permalink
Fixing documentation and printing usage when no argument is given (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jomier <[email protected]>
  • Loading branch information
jjomier authored Mar 25, 2024
1 parent 7de4087 commit a45f520
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dev_container
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,7 @@ launch() {
"$@"
}

build_and_run_desc() {
c_echo 'Build and run a requested application in a Docker container.
build_and_run_desc() { c_echo 'Build and run a requested application in a Docker container
Usage: ./dev_container build_and_run <application_name> [options]
Options:
--base_img : Fully qualified base image name, e.g. holoscan-sdk-dev:latest
Expand All @@ -664,6 +663,7 @@ build_and_run_desc() {
--verbose : Print extra output to console
'
}

build_and_run() {
local app_name=""
local app_language=""
Expand Down Expand Up @@ -742,8 +742,10 @@ parse_args() {
esac
done
shift $((OPTIND-1))

CMD="$1"
if [ -z "$CMD" ]; then
print_usage
fi
shift

ARGS=("$@")
Expand Down

0 comments on commit a45f520

Please sign in to comment.