authd-user-add: improved help message

This commit is contained in:
Luka Vandervelden 2020-01-20 13:45:22 +01:00
parent 7610025334
commit c69eda0ed3

View File

@ -10,7 +10,7 @@ register = false
OptionParser.parse do |parser|
parser.unknown_args do |args|
if args.size != 1
puts "usage: #{PROGRAM_NAME} [options]"
puts "usage: #{PROGRAM_NAME} <login> [options]"
puts parser
exit 1
end
@ -31,7 +31,7 @@ OptionParser.parse do |parser|
end
parser.on "-h", "--help", "Prints this help message." do
puts "usage: #{PROGRAM_NAME} [options]"
puts "usage: #{PROGRAM_NAME} <login> [options]"
puts parser
exit 0
end