Find Related products on Amazon

Shop on Amazon

Use Long Options in Scripts

Published on: 2025-06-03 08:57:00

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 try shell.exec( "git fetch origin --quiet" , .{}); try shell.exec( "git switch --create release-{today} origin/main" , .{ .today = stdx.DateUTC.now() }, ); Long form options are much more self-explanatory for the reader. ... Read full article.