• Stars
    star
    1
  • Language
    Ruby
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

It's just here to handle command line args. Mainly optional via switches.

Arg0

It's just here to handle command line args. Mainly optional via switches.

Installation

Add this line to your application's Gemfile:

gem 'arg0'

And then execute:

$ bundle

Or install it yourself as:

$ gem install arg0

Usage

  • to load it up

    require 'arg0'

  • to check if a bool-type switch is provided

    Arg0::Console.switch?('--is-arg') Arg0::Console.switch?(['-isarg', '--is-arg']) # synonymous args

  • returning array of (empty or) Value(s) provided after --my-arg at ARGV

    Arg0::Console.value_for('--my-arg') is same as Arg0::Console.values('--my-arg')

Arg0::Console.value_for(['-myarg', '--my-arg']) # synonymous args
is same as Arg0::Console.values(['-myarg', '--my-arg'])
  • returning the first value (not array of all) for any switch

    Arg0::Console.value('--my-arg') Arg0::Console.value(['-myarg', '--my-arg']) # synonymous args

  • returning Hash for all the Arguments provided as argument on console

    suppose command run was $ arg0_based_cmd -src ./lib -type html -v -l ./log/app.log start

 Arg0::Console.keyring
 # will return {'-src' => './lib', '-type' => 'html', '-v' => true, '-l' => './log/app', 'start' => :data  }

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

More Repositories

1

gmail-helper

it will contain different utilities for GMail API over OAuth2
Python
414
star
2

n00bRAT

Remote Administration Toolkit (or Trojan) for POSiX (Linux/Unix) system working as a Web Service
C
168
star
3

ansible-dashr

Ansible Dashboard relying on existing Ansible code and logs
JavaScript
70
star
4

goshare

Go Share your TimeSeries/NameSpace/KeyVal DataStore (using leveldb) over HTTP &/or ZeroMQ
Go
62
star
5

tutorials_as_code

so that stuff read/seen don't get muddled up with time
Elixir
43
star
6

eden_guide_to_hacking

its quick to read, broadway guide to HACKING ~ for anyone to have grasp of important concepts and skills which makes up the knowledge base of a hacker
26
star
7

dory

secret sharing service with auto-expiry as default, doesn't need accounts
Go
20
star
8

timefs

a timeseries datastore using filesystem as datastore
Go
11
star
9

weeproxy

http reverse proxy for personal use
Go
9
star
10

raguel

raguel - the shell archangel
Shell
8
star
11

gol

Moving to github.com/gol-gol ; the GOLang Package of decent reusable pieces
Go
6
star
12

rubygem_rss_motor

an RSS Motor for your application to get rolling on using RSS Feeds
Ruby
5
star
13

gae-flat-web

a quick setup for creating a Flat Web {Web1.0 i.e. Static_Content i.e. HTML/CSS/JS} website over Google Appengine
Python
5
star
14

lyrical-video-generator

lyrical-video-generator is supposed to help create lyrical videos from audio or transcription
Python
5
star
15

bootkit

bootkit to use easily & quickly get ready with node
Ruby
5
star
16

ficklepickle

simple struct pickling library with compression & encryption | CRUD via file, db and tcp server
Go
4
star
17

capture

fun-project utilising power of go-opencv with golang
Shell
4
star
18

crypt

manage your secrets locally using AES
Go
4
star
19

tune.cli

[broken youtube link] tune (music) picker from cli
Shell
3
star
20

security-osint

[will be scrapped & (re)written] Security OSINT
Ruby
3
star
21

h4ck3rscan

it aims at enabling any user to easily test their own desired anomalies over online devices & web services
Ruby
2
star
22

ci-go-nfo

rubygem to keep a check at your ThoughtWorks' Go Continuous Integration Server from console
Ruby
2
star
23

rubygem_xml_motor

small XML Parsing Algorithm implemented directly in >250 lines without any Native Dependencies.
Ruby
2
star
24

momentdb

time-machine written for state of any key-factor across a time-frame
Go
2
star
25

axml-motor

axml-motor is a new easy and quick implementation of an XML Parser (http://www.slideshare.net/AbhishekKr/xmlmotor)
Ruby
2
star
26

bff

Big File Finder, simple program to find (all) files above a size at a target dir
Go
2
star
27

godot-samples

practice games made to learn godot
GDScript
2
star
28

dotfiles

engines for advanced usage of multiple *nix utilities
Vim Script
2
star
29

untech-yearning

learning from yearning of not computer dependent domains
2
star
30

rubygem_puppeteer

Puppeteer is there to ease out Puppet-izing the infrastructure. Automate the automation development.
Ruby
1
star
31

levigoNS

levigoNS ~ The same old leveldb at Go via levigo with NameSpaced Key powers
Go
1
star
32

dead.drop

online dead drop ~ http://en.wikipedia.org/wiki/Dead_drop ~ [not yet]
Go
1
star
33

wwwtf

world wide web's trolls and flaw
Ruby
1
star
34

eden_guide_to_vim

It's another in series of Eden Guides trying to spread whatever I learned using this brilliant editor.
Vim Script
1
star
35

levigoTSDS

LevelDB-Based Time Series Data Store
Go
1
star
36

webaudio-samples

example usages for w3c webaudio
JavaScript
1
star
37

ssack-IT

[conceptual-stage] Secure System Administration (with) Centralized Knowledge (about) IT
1
star
38

http_voodoo_mongo

remote control MongoDB over HTTP {{MongoDB REST API}} with System Service Script
Ruby
1
star
39

power.shell.ing

PowerShell foo for Modules
PowerShell
1
star
40

dafuq

dafuq is here to fix issues faced now and then, sometimes and often
Ruby
1
star
41

sitehoster

[[Language: JAVA]] a Web Server with security implemented as roots and not as armour... [its Java and not Javascript, weird Github]
JavaScript
1
star
42

irc-qik-bot

pure socket no framework :: IRC Qik Bot ~ its a babbling IRC Bot very quick to setup and act ;) aiming to be intelligent
Ruby
1
star
43

insecurity-in-security

[document] finding out how NOT SECURE tech world have been
1
star
44

vim-dir

vim plugin opening file's directory in nautilus
Vim Script
1
star
45

knife-fu

starting with experimental set of chef knife plug-ins ~ maybe improve it to something useful with time
Ruby
1
star
46

twt

quick twitter-ing via twitter API uses
Shell
1
star
47

http200

friendly http server to use as placeholder for integration points of your service under development
Go
1
star
48

code_beautifier

Code for Beautification of Code..... By the Code For The Code
C
1
star
49

mfl

Market Forecast Learning | to learn to forecast market
Python
1
star
50

j

reducing javascript lib to minimal structure mostly needed not heavyweight contenders
JavaScript
1
star
51

securesys-winxp

SecureSys is WinXP System Tweaking App for Security and Customization; old project recovered from "CD"
Visual Basic
1
star
52

gae-yum-my

make your own yum-my yum reposiotry using appengine
Python
1
star
53

logalyzr

[WIP] logalyzr is there to help a particular event log spanned over multiple service component logs, to get entire picture
Ruby
1
star
54

dumplink

WARNING: Doesn't WORK now due to CSP.
Go
1
star
55

showman

[alpha-stage] an HTML based open-format Presentation SlideShow Creator ~ the created presentations are in simple HTML+JS+CSS format working over any browser and presented offline or hosted online
JavaScript
1
star
56

codestatd

it will be monitoring your code quality status (inspired from ZedShaw's CodeStatus sample)
Python
1
star
57

vachak

to read/listen books
Go
1
star
58

slick-port-scanner

(old code peice, unzipped with an intent of pro-fying) Slick Port Scanner is the most basic type of port scanner for Desired Port scan
Ruby
1
star
59

sample_project_flutter

it's a sample project for Flutter, to gradually grow with learning from varied tutorials
Dart
1
star
60

gae-private-web

[beta-stage] a quick setup for creating a Static Website but RESTRICTED only to allowed GMail Users... kin'of web portal you just want to share with your friends... FACE-UN-BOOK
1
star
61

a-techXpress-guide

all self-drafted easy and quick learning technology guides on several computer {security / development / yada-yada-yada} how-to topics
1
star
62

webhoudini

The Web Magician showing Online Tricks
Python
1
star
63

abk-labs.cucumber

collection of Cucumber based setups, derailed_cuke
Ruby
1
star
64

aqikcipher

encrypt-decrypt using a small shared password in a dumb One-Time-Pad style
C
1
star
65

dup

elixir cli to check for duplicate files at current directories
Elixir
1
star
66

messQ

just a simplistic project to mess around sockets and queue
Ruby
1
star
67

pywebvtt

Python file parser for WebVTT subtitles
Python
1
star
68

eden_guide_to_puppet

the puppet related stuff that could go opensource of'course
Puppet
1
star
69

imdb-cli

a cli to get some IMDB results on console
Go
1
star
70

nagiosMailAck

Nagios Add-on to Acknowledge Alert Notifications via Mail
Ruby
1
star
71

joycamp

thinkpol uses it to get the commands run
Shell
1
star
72

acodegen

a vision enabling development of SOFTWARES in a distributed env over WebPage like IDE its Compiler Project, has plug-n-play Code Generator based on XML (parse table); create SyntaxChecker->Parser for Language, generating XML-IC (i.e. IC=IntermediateCode) depicting parse tree; join -=aCodeGen=- & get full working compiler...
1
star