![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This gem is a lean, easy to use CLI framework with a very small footprint. It provides an easy to use argument parsing, help displaying, minimalistic error handling and some tools like executing external programs and gather their output.
To use Mini CLI just install the gem with
gem install mini-cli
or include it to you project's gemspec:
gem 'mini-cli'
A very minimalistic program may look like this sample program:
require 'mini-cli'
include MiniCli
help <<~HELP, %w[TARGET [SOURCE]]
-n, --name NAME option requires NAME argument, has shortcut
--url URL option requires URL argument
-s, --switch option without any argument, has shortcut
--opt option without any argument
This is a sample application only.
HELP
main do |args|
puts "TARGET: #{args['TARGET']}"
puts "SOURCE: #{args['SOURCE']}" if args.key?('SOURCE')
puts "NAME: #{args['NAME']}" if args.key?('NAME')
puts "URL: #{args['URL']}" if args.key?('URL')
puts "FILES: #{args['FILES']}" unless args['FILES'].empty?
puts '--switch was given' if args.key?('switch')
puts '--opt was given' if args.key?('opt')
end
The sample uses the powerful #help
method to generate an argument parser which handles the command line for you. You only need to handle the given Hash
parameter (named args
in the sample) in the body of your #main
block.
Executing the sample with --help
or -h
will provide following help screen:
Usage: sample [OPTIONS] TARGET [SOURCE]
Valid Options:
-n, --name NAME option requires NAME argument, has shortcut
--url URL option requires URL argument
-s, --switch option without any argument, has shortcut
--opt option without any argument
This is a sample application only.
See the ./samples
directory for more sample programs…
FAQs
Unknown package
We found that mini-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.