container: Display help message when no args are passed

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Veiko Aasa 2022-08-23 20:25:38 +03:00 committed by Sunil Mohan Adapa
parent ecc31fe1fd
commit 7f959ad304
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -319,6 +319,11 @@ def parse_arguments():
default=default_distribution,
help='Distribution of the image to update')
# Display help message when no args are passed
if len(sys.argv) == 1:
parser.print_help()
sys.exit()
return parser.parse_args()