systemd / casync

Content-Addressable Data Synchronization Tool
1.5k stars 117 forks source link

Fix usage for list and mtree commands #216

Closed gportay closed 2 years ago

gportay commented 5 years ago

While I was working on completing the bash completion script (see #215), I found out that both list and mtree commands have an incomplete usage.

Both handle a second optional argument PATH, as the stat command does.

Correct me if I am wrong.


The three commands list, mtree and stats are dispatched to the same function: verb_list().

Thus, they share the same command line interface:

casync list|mtree|stat [ARCHIVE|ARCHIVE_INDEX|DIRECTORY] [PATH]

However, in the end, the output is different.

This commit fixes the help usage and the man page for both commands list and mtree.