-
Notifications
You must be signed in to change notification settings - Fork 1
Displaying dsu help
dsu
provides two methods of executing tasks: commands and subcommands; commands and subcommands are virtually the same. The only difference is that subcommands are grouped under a single command; in the end, this is simply a way to organize commands.
This subtle distinction is important to keep in mind when displaying dsu
help, because help for commands vs. subcommands are obtained differently.
dsu
has three levels of help. Each successive level provides the appropriate level of detail.
-
dsu
general help -
dsu
command help -
dsu
command subcommand help
dsu help
dsu # Equivalent to the above
![image](https://private-user-images.githubusercontent.com/346917/295844159-27cafdf8-18bb-486d-a994-4742fa8886eb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTM1MjQsIm5iZiI6MTcyNjA5MzIyNCwicGF0aCI6Ii8zNDY5MTcvMjk1ODQ0MTU5LTI3Y2FmZGY4LTE4YmItNDg2ZC1hOTk0LTQ3NDJmYTg4ODZlYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjIwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yOWFmMTM5ZDliNzQyYjQ3MjQ3MDE4MjI0NTUyZTBlN2JkOTIxMTMzZmExMWZiNTE5OTk5MzE3M2MzNzg3MTQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.WKdgalEslumBjE1pTlJ9V755VANTlj9Yc6zrU_fwtok)
Typing dsu help <COMMAND>
where COMMAND is the name of any dsu
command, will display the help for that command.
dsu help add
dsu h a # Equivalent to the above, only using shorthand
![image](https://private-user-images.githubusercontent.com/346917/295843137-3337a558-48f1-4b42-b7c5-ffd20f899c72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTM1MjQsIm5iZiI6MTcyNjA5MzIyNCwicGF0aCI6Ii8zNDY5MTcvMjk1ODQzMTM3LTMzMzdhNTU4LTQ4ZjEtNGI0Mi1iN2M1LWZmZDIwZjg5OWM3Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjIwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNTFhNWMyM2I3MjIzNzcxZjc3NzIzMGMwNmJhZDYyYzliYThhNWJlNTY0Yzg1ZDYwM2Q2OWJlOGNmYmM5NWRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.7qeSvNCgGg9DpVEw4XErTRB_y_kAEnqxdD47xOFXBMo)
You can display help for any command subcommand.
Some dsu
commands have subsequent subcommands. dsu
commands that display the SUBCOMMAND banner, have subsequent subcommands.
![image](https://private-user-images.githubusercontent.com/346917/295851702-2b38bf6e-960e-40a9-b226-5bf7af12814c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTM1MjQsIm5iZiI6MTcyNjA5MzIyNCwicGF0aCI6Ii8zNDY5MTcvMjk1ODUxNzAyLTJiMzhiZjZlLTk2MGUtNDBhOS1iMjI2LTViZjdhZjEyODE0Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjIwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04M2JmMjlhNzYwNmZlMTQ2OTZmM2M0NzZlNzEyYTNmOTQ5ZDNlMTE2M2Y4Mjg5YjZjZWJkZmJhODU5MDQxNWUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9W688KAOXBdC4rnNDsHidLtPm1V1NXEiKdlE6VL-NK8)
Typing dsu <COMMAND> help <SUBCOMMAND>
where SUBCOMMAND is the name of any subcommand corresponding to COMMAND, will display the help for that subcommand.
Here we see that the dsu edit
command has subcommands.
dsu help
![image](https://private-user-images.githubusercontent.com/346917/295854926-7708073e-dfc4-4f29-9b9e-2fbdae10c899.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTM1MjQsIm5iZiI6MTcyNjA5MzIyNCwicGF0aCI6Ii8zNDY5MTcvMjk1ODU0OTI2LTc3MDgwNzNlLWRmYzQtNGYyOS05YjllLTJmYmRhZTEwYzg5OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjIwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNzA1MjBiYjE5MTMxMDkwZTg4NjU4ZWQyNDcyODk0MDQ4YTk0NzgzZDFkYzZjNGNiODRmMTZkZDRmZGVjZDljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.GpGB0CHUqyYYLJDfKU6oISy0GHvF-EtNTNlSGQoLSOY)
Here we see the names of these subcommands (date
, today
, tomorrow
and yesterday
)
dsu help edit
![image](https://private-user-images.githubusercontent.com/346917/295857059-40e25fb8-4760-486d-98dd-18a96f4aba57.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTM1MjQsIm5iZiI6MTcyNjA5MzIyNCwicGF0aCI6Ii8zNDY5MTcvMjk1ODU3MDU5LTQwZTI1ZmI4LTQ3NjAtNDg2ZC05OGRkLTE4YTk2ZjRhYmE1Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjIwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YzExY2JkY2JmYTJjMDE1ODNmYjQ5NjQ5ODk4ZmNlZDUxNzI4MDdkOGNhMGM0YzAyNTI4NjBlN2VmNDQwYTk1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vR2gWJgoebozNx6llPTwDPtKtsCfNMghjtuD7p6ziZc)
You can display help for any of these subcommands.
dsu edit help date
![image](https://private-user-images.githubusercontent.com/346917/294628951-583759fe-b348-4740-a9f0-0755fddceee5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTM1MjQsIm5iZiI6MTcyNjA5MzIyNCwicGF0aCI6Ii8zNDY5MTcvMjk0NjI4OTUxLTU4Mzc1OWZlLWIzNDgtNDc0MC1hOWYwLTA3NTVmZGRjZWVlNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjIwMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wN2ZiMmZkNzFjYWQ0YzAzZmIxYmVkNjQ3M2I1NDFhNTE5MTljNzNhNzBmYWJjODhmMGViYWVkODMwNWMxYTRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.hGgWHn_MPdFfqwTo3SFXdWJeNAak4g3t2OneV7jLV04)
dsu edit help today
![image](https://private-user-images.githubusercontent.com/346917/295864512-740fdc11-9422-4042-8bf0-70fb0d5ea212.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwi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