Skip to content

Commit

Permalink
mavexplorer: return early
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Barker <[email protected]>
  • Loading branch information
shancock884 and peterbarker committed Mar 18, 2024
1 parent 1b07864 commit 968f26d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MAVProxy/tools/MAVExplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,10 @@ def cmd_logmessage(args):
'''show log message information'''
mlog = mestate.mlog
usage = "Usage: logmessage <help|download>"
if len(args) > 0:
if len(args) <= 0:
print(usage)
return

if args[0] == 'help':
if len(args) < 2:
print(usage)
Expand Down

0 comments on commit 968f26d

Please sign in to comment.