From 4c4a681a65098675cca5f21d0cf6dacf36cec3e4 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Thu, 10 Aug 2023 08:19:25 +0300 Subject: [PATCH] Move callout on long vs short options Place it where long and short options are first introduced. --- episodes/02-filedir.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/episodes/02-filedir.md b/episodes/02-filedir.md index ae7cc2bed..765b428c9 100644 --- a/episodes/02-filedir.md +++ b/episodes/02-filedir.md @@ -263,6 +263,18 @@ Mandatory arguments to long options are mandatory for short options, too. ::::::::::::::::::::::::::::::::::::::::: callout +### When to use short or long options +When options exist as both short and long options: + +- Use the short option when typing commands directly into the + shell to minimize keystrokes and get your task done faster. +- Use the long option in scripts to provide clarity. + It will be read many times and typed once. + +:::::::::::::::::::::::::::::::::::::::::::::::::: + +::::::::::::::::::::::::::::::::::::::::: callout + ## Unsupported command-line options If you try to use an option that is not supported, `ls` and other commands @@ -833,18 +845,6 @@ Library/ Users/ Network/ Volumes/ ``` - -::::::::::::::::::::::::::::::::::::::::: callout -### When to use short or long options -When options exist as both short and long options: - -- Use the short option when typing commands directly into the - shell to minimize keystrokes and get your task done faster. -- Use the long option in scripts to provide clarity. - It will be read many times and typed once. - -:::::::::::::::::::::::::::::::::::::::::::::::::: - ### Nelle's Pipeline: Organizing Files Knowing this much about files and directories,