authd-user-add: improved help message
parent
7610025334
commit
c69eda0ed3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue