README.md in mongoid-shell-0.4.4 vs README.md in mongoid-shell-0.4.5

- old
+ new

@@ -41,9 +41,18 @@ ``` ruby mongodump = Mongoid::Shell::Commands::Mongodump.new(excludeCollection: %w(users products)) system mongodump.to_s # mongodump --excludeCollection users --excludeCollection products ``` +To use output in logs, pass the `mask_sensitive` option to `to_s`. + +``` ruby +> Mongoid::Shell::Commands::Mongo.new.to_s(mask_sensitive: true) + => "mongo 59.1.22.1:27017/mongoid --username user --password ********" + +> Mongoid::Shell::Commands::Mongo.new.to_s(mask_sensitive: '(masked)') + => "mongo 59.1.22.1:27017/mongoid --username user --password (masked)" +``` Compatibility ------------- This gem supports Mongoid 3, 4, 5 and 6.