todo.rb
def has_valid_args()
  if ARGV[1] == nil
    puts "Missing id or content for the option. Pass -h or --help for what to pass."
    return false
  end
  return true
end
# Checks if there are any arguments passed after the initial options i.e:
# Ex. todo <option> <content> <-- checks if this is missing
# 
Checks if there are any arguments passed after the initial options i.e:
Ex. todo   <-- checks if this is missing
Checks if there are any arguments passed after the initial options i . e : Ex . todo < -- checks if this is missing
def has_valid_args()
  if ARGV[1] == nil
    puts "Missing id or content for the option. Pass -h or --help for what to pass."
    return false
  end
  return true
end
def has_valid_args ( ) if ARGV [ 1 ] == nil puts "Missing id or content for the option. Pass -h or --help for what to pass." return false end return true end
Checks if there are any arguments passed after the initial options i.e:
Ex.
Checks if there are any arguments passed after the initial options i . e : Ex .