Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9123875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:26:41+00:00 2026-06-17T06:26:41+00:00

Can any body tell how the below three options differs from each other in

  • 0

Can any body tell how the below three options differs from each other in Ruby?

Part-I

  • –verbose
  • -v
  • -w

Part-II

  • –n
  • –p

All are doing the same job which is verbose mode ON. But logically how are they differs from each other?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:26:42+00:00Added an answer on June 17, 2026 at 6:26 am

    -v is just a shorter way of writing --verbose, so they are the same thing. -w turns on warnings, see http://www.caliban.org/ruby/rubyguide.shtml#warnings for more info about those.

    Part 2:

    -n and -p are not related to verbosity. They just loop your ruby script.

    Run the following from your terminal:

    ruby -n -e "puts 'hello world'"
    

    Now press the enter key a few times. You should see:

    hello world
    
    hello world
    
    hello world
    

    Now do the same for -p:

    ruby -p -e "puts 'hello world'"
    

    This just repeats what you typed before pressing enter.

    asdf
    hello world
    asdf
    
    hello world
    
    asdfs
    hello world
    asdfs
    34644
    hello world
    34644
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to iphone programming.Can any body tell me that below code is
Can any body tell me how can I store Java Date to Mysql datetime...?
Can Any body tell why window class library can't be added in the silverlight
Can any body tell me how to add silverlight 3.0 control in master page
I know the binary representation of -127 is 10000001 (complement). Can any body tell
Can any body tell how to change the width & height of iframe in
Can anybody tell me which View Switcher Control is this in below image.?
Can anybody tell what's the problem of the code below? int main () {
PhoneGap will print out the json from twitter below. However when I use any
Can anybody tell me what is the difference between standard iOS account and enterprise

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.