Skip to content

Commit 13e9ce3

Browse files
committed
Cleanup comments
1 parent c16fbb0 commit 13e9ce3

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

cli/hdev.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,9 @@ cli_help() {
122122
echo " ${bold}get${normal} - Devices and host information."
123123
fi
124124
if [ "$is_build" = "1" ] || [ "$gpu_enabled" = "1" ] || [ "$vivado_enabled" = "1" ]; then
125-
#if [ ! "$is_build" = "1" ] && ([ "$gpu_enabled" = "1" ] || [ "$vivado_enabled" = "1" ] || [ "$is_network_developer" = "1" ]); then
126125
echo " ${bold}new${normal} - Creates a new project of your choice."
127126
fi
128127
echo " ${bold}open${normal} - Opens a windowed application for user interaction."
129-
#if [ ! "$is_build" = "1" ] && [ "$vivado_enabled" = "1" ]; then
130128
if [ ! "$is_build" = "1" ] && { [ "$is_acap" = "1" ] || [ "$is_asoc" = "1" ] || [ "$is_fpga" = "1" ]; }; then
131129
echo " ${bold}program${normal} - Driver and bitstream programming."
132130
fi
@@ -212,33 +210,17 @@ read command_arguments_flags <<< $@ #command$arguments
212210
# ensure -h or --help are going at the beginning
213211
#-h
214212
if [[ $(echo "$command_arguments_flags" | grep "\-h\b" | wc -l) = 1 ]]; then
215-
#echo "first: $command_arguments_flags"
216-
#remove -h
217213
command_arguments_flags=${command_arguments_flags/-h/""}
218-
#echo "second: $command_arguments_flags"
219-
#remove command and arguments
220214
command_arguments_flags=${command_arguments_flags/$command" "/""}
221-
#echo "third: $command_arguments_flags"
222215
command_arguments_flags=${command_arguments_flags/$arguments" "/""}
223-
#echo "fourth: $command_arguments_flags"
224-
#add it at the beginning
225216
command_arguments_flags=$command" "$arguments" -h "$command_arguments_flags
226-
#echo "fifth: $command_arguments_flags"
227217
fi
228218
#--help
229219
if [[ $(echo "$command_arguments_flags" | grep "\-\-help\b" | wc -l) = 1 ]]; then
230-
#echo "first: $command_arguments_flags"
231-
#remove --help
232220
command_arguments_flags=${command_arguments_flags/--help/""}
233-
#echo "second: $command_arguments_flags"
234-
#remove command and arguments
235221
command_arguments_flags=${command_arguments_flags/$command" "/""}
236-
#echo "third: $command_arguments_flags"
237222
command_arguments_flags=${command_arguments_flags/$arguments" "/""}
238-
#echo "fourth: $command_arguments_flags"
239-
#add it at the beginning
240223
command_arguments_flags=$command" "$arguments" -h "$command_arguments_flags
241-
#echo "fifth: $command_arguments_flags"
242224
fi
243225

244226
#help

0 commit comments

Comments
 (0)