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