Get the latest tech news

Use Long Options in Scripts


Many command line utilities support short form options (-f) and long form options (--force). Short form is for interactive usage. In scripts, use the long form.

That is, in your terminal, type$ git switch -c my-new-branch In your release infrastructure script, write Long form options are much more self-explanatory for the reader.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of scripts

scripts

Photo of Use Long Options

Use Long Options

Related news:

News photo

As Amazon takes over the Bond franchise, we submit our scripts for the next flick

News photo

As Amazon takes over the Bond franchise, we submit the scripts we've working on for the next flick

News photo

ToolGit: A collection of scripts that extend Git with various sub-commands