labring / sealfs

The storage system of sealos, aims to be a high-performance, high-reliability, and auto-scaling distributed file system
Apache License 2.0
141 stars 20 forks source link

reading from the command line for ./manager and ./server #89

Closed dinoallo closed 1 year ago

dinoallo commented 1 year ago

Since sealfs already depends on clap, the command line support is implemented using this library. This commit separates Args and Properties structures. This way, it's more convenient to add more arguments in the future without restructuring Properties.

uran0sH commented 1 year ago

remove 'feature' from commit's title

uran0sH commented 1 year ago

Add an argument for determining whether using the command line or config file

dinoallo commented 1 year ago

All are resolved by 8a02af8d38510e9517ce4bc427637ad487ff5f4f