aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-02-15 06:28:47 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-02-15 06:28:47 +0000
commit8207a48a612fb6971e0b8fc8924c133e12b2ea36 (patch)
tree85ad12572759b85b1f16a2eb5e2d8b227a6ffa69 /src
parentAdded global_settings to CLIArgs struct (diff)
downloadminiserve-8207a48a612fb6971e0b8fc8924c133e12b2ea36.tar.gz
miniserve-8207a48a612fb6971e0b8fc8924c133e12b2ea36.zip
Added docstrings to SortingMethods enum
Diffstat (limited to 'src')
-rw-r--r--src/listing.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/listing.rs b/src/listing.rs
index 6d956ac..f82764e 100644
--- a/src/listing.rs
+++ b/src/listing.rs
@@ -10,6 +10,15 @@ use std::path::Path;
arg_enum! {
#[derive(Clone, Copy, Debug)]
/// Available sorting methods
+ ///
+ /// Natural: natural sorting method
+ /// 1 -> 2 -> 3 -> 11
+ ///
+ /// Alpha: pure alphabetical sorting method
+ /// 1 -> 11 -> 2 -> 3
+ ///
+ /// DirsFirst: directories are listed first, alphabetical sorting is also applied
+ /// 1/ -> 2/ -> 3/ -> 11 -> 12
pub enum SortingMethods {
Natural,
Alpha,