authd-user-add: improved help message

ipc07
Luka Vandervelden 2020-01-20 13:45:22 +01:00
parent 7610025334
commit c69eda0ed3
1 changed files with 2 additions and 2 deletions

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