<commit_before># encoding: utf-8

$:.unshift(File.expand_path('../../lib', __FILE__))

require 'claide'

argv = CLAide::ARGV.new(['tea', '--no-milk', '--sweetner=honey'])
p argv.arguments          # => ['tea']
p argv.shift_argument     # => 'tea'
p argv.flag?('milk')      # => false
p argv.option('sweetner') # => 'honey'<commit_msg>Update argv.rb example<commit_after># encoding: utf-8

$:.unshift(File.expand_path('../../lib', __FILE__))

require 'claide'

argv = CLAide::ARGV.new(['tea', '--no-milk', '--sweetner=honey'])
p argv.shift_argument     # => 'tea'
p argv.shift_argument     # => nil
p argv.flag?('milk')      # => false
p argv.flag?('milk')      # => nil
p argv.option('sweetner') # => 'honey'
p argv.option('sweetner') # => nil

puts

argv = CLAide::ARGV.new(['tea', 'coffee'])
p argv.arguments  # => ['tea', 'coffee']
p argv.arguments! # => ['tea', 'coffee']
p argv.arguments  # => []

puts
{'fraction_non_alphanumeric': 0.23814773980154355, 'fraction_numerical': 0.002205071664829107, 'mean_word_length': 3.778947368421053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3692804', 'n_tokens_mistral': 363, 'n_tokens_neox': 351, 'n_words': 68}